The message you selected is no longer available for viewing.

loading sprites

#1jamesgraham2011Posted 7/29/2012 3:36:35 PM
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 .
#2UncleSporkyPosted 7/29/2012 4:43:33 PM(edited)
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.
#3jamesgraham2011(Topic Creator)Posted 7/29/2012 4:48:22 PM
Thanks Unclesporky ill do that, thanks for pointing me in the right direction.
#4jamesgraham2011(Topic Creator)Posted 7/29/2012 6:14:31 PM
Can someone tell me how to add more then 1 sprite? or point me to the page in the manual.
#5someguy28898Posted 7/29/2012 7:04:54 PM
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
#6jamesgraham2011(Topic Creator)Posted 7/29/2012 7:45:40 PM
Thanks for explaining that! I got it now
#7Bdl1237Posted 8/8/2012 7:18:32 AM
I think these guys might be too smart for us, James.
#8Klaxynd_NoheartPosted 8/16/2012 2:06:27 PM
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