{{htmlmetatags>metatag-robots=()
metatag-title=(MOB | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for MOB)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(MOB | ugBASIC User Manual)
metatag-og:description=(Manual page for MOB)
}}
====== 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:
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/mobs_example_01.bas|mobs_example_01.bas]]''
==== 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 [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON MOB|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]