The MOVE
command allows you to activate a specific movement from the current
position. If a movement is already active, it will be abruptly interrupted and
the indicated one will be started.
It is also possible to indicate an animation to be run in a "synchronized" way
with respect to the movement, using the keyword SYNC
. In particular,
the synchronization will occur by executing the ease in of the animation and,
at the end of the same, by starting the movement and the loop of the animation
(which must therefore have one). At the end of the movement, the animation
will be eased out.
MOVE id WITH movement [SYNC animation] MOVE id TO x,y WITH movement [SYNC animation]
MOVE player TO 10, 10 WITH moveTo SYNC animWalking
Join BASIC 10Liner Contest with ugBASIC!
An interesting competition is held at the beginning of each year: the
BASIC 10Liner Contest.
It is possible to use ugBASIC to participate in the next
"BASIC10Liner" competition, in the following categories:
MOVE ↔ Mv
If you have found a problem with this keyword, if you think there is a bug or, more
simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!
open an issue
BACK TO KEYWORDS