Main Page
News
History
Limitations
Graphics
Music
Levels
Gameplay
Now Browsing
Links
Download

Move

        MOVE                MoveX, MoveY

Args:

  • MoveX: steps per frame in hires pixels along X.
  • MoveY:steps per frame in hires pixels along Y.
  • Move moves from the current coordinate by a certain amount per frame, regardless of where it is. This makes it a great command use for relocatable paths, that is you can use the same path at any location on the screen and it’ll work as normal.

    Other commands such as MoveTo are fixed to the screen and are useful for a Boss or other such baddie that is unique since you can plan it out better and don’t care if its not used again.


    Example: alien u-ttack

    The sprites move into the screen, move down, and then move back off the screen. Kind of like a U on its side:

    DemoPath1:
                               ; Move Left for 200 pixels
                               PFor 100
                                       Move -2, 0
                               PNext

                               ; Move Down 60 pixels
                               PFor 30
                                       Move 0, 2
                               PNext

                               ; Move Right 200 pixels
                               PFor 100
                                       Move 2, 0
                               PNext
                               KillSprite

    See also:
    MasterPath
    MoveTo
    MoveX
    MoveY

    Main Table