EasyManua.ls Logo

Commodore 128D - Page 312

Commodore 128D
427 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...
Parameter
Description
number
Sprite
number
(1-8)
on/off
Turn
sprite
on
(1)
or
off
(0)
foreground
Sprite
foreground
color
(1-16)
priority
Priority
is
0
if
sprites
appear
in
front
of
objects
on
the
screen.
Priority
is
1
if
sprites
appear
in
back
of
objects
on
the
screen.
x-exp
Horizontal
EXPansion
on
(1)
or
off
(0)
y-exp
Vertical
EXPansion
on
(1)
or
off
(0)
mode
Select
standard
sprite
(0)
or
multicolor
sprite
(1)
Unspecified
parameters
in
subsequent
sprite
statements
take
on
the
characters
of
the
previous
SPRITE
statement.
You
may
check
the
characteristics
of
a
SPRITE
with
the
RSPRITE
function.
Use
the
MOVSPR
command
to
place
the
SPRITE
on
the
screen.
Use
SPRCOLOR
to
set
the
multicolor
sprite
colors.
To
interactively
design
a
sprite
use
SPRDEF.
EXAMPLES:
SPRITE
1,1,3
SPRITE
2,1,7,1,1,1
Turn
on
sprite
number
1
and
color
it
red.
Turn
on
sprite
number
2,
color
it
blue
make
it
pass
behind
objects
on
the
screen
and
expand
it
in
the
vertical
and
horizontal
directions.
SPRITE
6,1,1,0,0,1,1
Turn
on
SPRITE
number
6,
color
it
black.
The
first
0
tells
the
computer
to
display
the
sprites
in
front
of
objects
on
the
screen.
The
second
0
and
the
1
following
tell
the
C128
to
expand
the
sprite
verticaly
only.
The
last
1
specifies
multicolor
mode.
Use
the
SPRCOLOR
command
to
select
the
sprite's
multicolor.
SPRSAV
a
—Store
sprite
data
from a
text
string
variable
into
a
sprite
storage
area
or
vice
versa
SPRSAV
(origin),(destination)
This
command
copies
a
sprite
image
from
a
string
variable
to
a
sprite
storage
area.
It
can
also
copy
the
data
from
the
sprite
storage
area
into
a
string
variable.
Either
the
origin
or
the
destination
can
be
a
sprite
number
or
a
string
variable
but
they both
cannot
be
string
variables.
If
you
are
copying
a
string
into
a
sprite,
only
the
first
63
bytes
of
data
are
used.
The
rest
are
ignored
since
a
sprite
can
only
hold
63
data
bytes.
See
SSHAPE.
304
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements
U

Table of Contents

Other manuals for Commodore 128D

Related product manuals