EasyManua.ls Logo

Commodore 128 - Page 290

Commodore 128
448 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 #15
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

Table of Contents

Other manuals for Commodore 128

Related product manuals