Available on:

MOVE

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.

SYNTAX

 MOVE id WITH movement [SYNC animation]
 MOVE id TO x,y WITH movement [SYNC animation]


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 MOVE player TO 10, 10 WITH moveTo SYNC animWalking


ABBREVIATION: Mv

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:

  • PUR-120 - A game in 10 lines of max 120 characters (w/abbrev.)
  • EXTREME-256 - A game in 10 lines of max 256 characters (w/abbrev.)
  • SCHAU - Any program in 10 lines of max 256 characters (w/abbrev.)
In order to reduce space you can use this abbreviation for this instruction:

MOVE ↔ Mv

Any problem?

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