The message you selected is no longer available for viewing.

loading sprites

  • Topic Archived
  1. Boards
  2. Petit Computer
  3. loading sprites
3 years ago#1
ive looked at the manual but cant grasp how to load a sprite when my game loads and then how to get it on my page. Any help is apreciated .
3 years ago#2
You need to learn to play with the commands. Don't be afraid of doing something wrong.

Look at page 37 of the manual. SPSET is probably the command you need since it talks about activating a sprite. The Format box and others below it tell you exactly what to type to use it.

By "play with it" I mean see which numbers are valid for each thing you have to type after SPSET, and just try the first one of each to see what happens. So just write a program that only says

SPSET 0,0,0,0,0,0

and watch the results.

Then try to figure out why the thing that happened...happened. Edit your program, try different numbers based on what it says they will do, and run it again. Page 8 in the manual might help too, giving ID numbers for each sprite.

Once you have a handle on that, look at page 38, sprite control, and try some of those commands. SPOFS and SPANIM might be fun.

By the way, in the Format boxes in the manual, if a part of the command is in [brackets], it's optional and you don't have to type it. Otherwise you have to type every part the command is expecting, or you'll get a "missing operand" error.
3 years ago#3
Thanks Unclesporky ill do that, thanks for pointing me in the right direction.
3 years ago#4
Can someone tell me how to add more then 1 sprite? or point me to the page in the manual.
3 years ago#5
I think you can have up to 99 sprites, the first parameter in SPSET is the sprite control number

so add another line like

SPSET 1,0,0,0,0 to add another sprite. To move the sprite away from the first you can can move it with SPOFS sprite#,X,Y

SPOFS 1,50,50

You can change the type of sprite with the second parameter of SPSET, like

SPSET 2,60,0,0,0

You can view the list of sprites in the manual. Oh and to animate them use the SPANIM sprite#,frames of animation,delay between frames,how many times to loop it
3 years ago#6
Thanks for explaining that! I got it now
3 years ago#7
I think these guys might be too smart for us, James.
3 years ago#8
Bdl1237 posted...
I think these guys might be too smart for us, James.

WarioWare D.I.Y. reference, huh?
3DS FC: 3737-9648-7758
psycho-cane, you're so keen, need some more candycane
  1. Boards
  2. Petit Computer
  3. loading sprites

Report Message

Terms of Use Violations:

Etiquette Issues:

Notes (optional; required for "Other"):
Add user to Ignore List after reporting

Topic Sticky

You are not allowed to request a sticky.

  • Topic Archived