User Tools

Site Tools


ugbasic:user:kw:mob
Translations of this page:


ugBASIC User Manual

MOB ✓

SYNTAX

   MOB [index],[image] {VISIBILE|HIDDEN}
   MOB [index],[image] AT {[x]},{[y]} {VISIBILE|HIDDEN}
   MOB([image])

PURPOSE

The MOB command allows you to define a movable object. In order to be used, you must have loaded the image. The simplest syntax provides, in fact, the definition of the object. It is possible to indicate a starting position for the object, different from (0,0) and whether the object is visible or not. Additional syntaxes are available for such situations.

EXAMPLE

  starship = 1: MOB starship, LOAD IMAGE("starship.png")
  MOB 2, alien AT 100,100 HIDDEN

See also the following example files:

ABBREVIATION

 Mb

AVAILABLE ON

  • Commodore 64

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY