Available on:

MMOB

The instruction MMOB move a sprite on the screen. It is used to move the given sprite from a starting point with the coordinates sx,sy to a target point with the coordinates zx,zy. The parameter gr sets the display size of the sprite (and thus changes the basic setting in MOB SET). The movement speed is set with sp, with larger values making the sprite move more slowly.

The shortened form (without the target specification zx,zy) simply positions the sprite in question at the selected coordinate sx,sy.

Like the Simons' Basic, sprites do not move independently of one another (in an interrupt), but only one after the other (one MMOB command controls one sprite, the next command the next sprite, etc.).

The size and speed settings should be entered in MOB SET. Almost all sprite related parameters are then collected there. The following values for are permitted: a 0 means 24×21 (normal), 1 means 48×21 (x-expanded), 2 means 24×42 (y-expanded), and finally 3 means 48×42 (double size).

ABBREVIATION: MMo

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:

MMOB ↔ MMo

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