Commodore 128 System Manual page 290

Table of Contents

Advertisement

EXAMPLES:
MOVSPR 1,150,150
Position sprite 1 near the centre of the screen, x,y coordinate
150,150.
MOVSPR 1,+20,-30
Move sprite 1 to the right 20 coordinates and up 30 coordinates.
MOVSPR 4, -50, +100
Move sprite 4 to the left 50 coordinates and down 100
coordinates.
MOVSPR 5, 45 # 1 5
Move sprite 5 at a 45 degree angle in the clockwise direction,
relative to its original x and y coordinate. The sprite moves at the
fastest rate (15).
NOTE: Once you specify an angle and a speed in the third form
of the MOVSPR statement, you must set a speed of zero to stop
the sprite moving.
NEW
Clear (erase) program and variable storage
NEW
This command erases the entire program in memory and clears
any variables that may have been used. Unless the program was
stored on disk or tape, it is lost. Be careful with the use of this
command. The NEW command also can be used as a statement
in a BASIC program. However, when the Commodore 128 gets to
this line, the program is erased and everything stops.
ON
Conditionally branch to a specified program line number
according to the results of the specified expression
ON expression <GOTO|GOSUB> line #1 [, line #2,...]
17-48

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents