LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

SPANIM problem

Root / Programming Questions / [.]

ChaseCZCreated:
SPANIM 3,"XY",-15,255,35,1
This is the code... It should go to 255,35 but instead it goes half the way then it stops and go to 255,35 only after i use the touch screen. Here's video if you don't understand what i'm having problem with, also ignore the blackness on left side, it's because there is some private stuff that i don't wanna show yet. https://www.youtube.com/watch?v=RT8W0sT3VBs&feature=youtu.be What should i do to fix it?

Are you running it once per frame or just when you stop touching the screen?

I'm running it when R+L are pressed and some variable equals 5. So i don't know

i don't know
If you don't know your code, it's unlikely anyone will be able to help you from sparse indirect clues.

it's the code on line 105. btw i said “I don't know“ because i don't know what does he mean with “once per frame“

Is the part that sets the strawberry's destination only line 106? I guess anyone else set wrong destination (e.g. 250, 35). Try checking all parts which are related to sprite #30.

You can use SPCHK() to check if a sprite is animating.
IF !SPCHK(0) THEN
 SPANIM 'code here
ENDIF
Also, one frame is one WAIT 1 statement, or one VSYNC 1.

Is the part that sets the strawberry's destination only line 106? I guess anyone else set wrong destination (e.g. 250, 35). Try checking all parts which are related to sprite #30.
It's weird... Everywhere is 255,35
You can use SPCHK() to check if a sprite is animating.
IF !SPCHK(0) THEN
 SPANIM 'code here
ENDIF
Also, one frame is one WAIT 1 statement, or one VSYNC 1.
No, it didn't work... I guess i'll have to let it be as it is. But thanks all of you