プレイ日記
Diom thexzambie
I did what mistman said but, it's doing the exact same thing as before (the sprite moves to the top-left of the screen). I know that it's moving directly to the coordinates -1 but, I can't figure out why it's not moving up one.
1そうだね
プレイ済み
返信[1]
親投稿
MerZ LinkZ19
Try using SPOFS 0,X,Y
1そうだね
プレイ済み
返信[2]
親投稿
Diom thexzambie
thanks but, now I need to animate the sprite and change the direction he is facing.
0そうだね
プレイ済み
返信[3]
親投稿
mystman12 mystman12
Yeah, you just need SPOFS 0,X,Y after the code that changes the position. Generally you want to make calculations first, then display it second. (Which is what SPOFS will do) Try this: Y=Y-1 'Changes Y to itself minus 1 SPOFS 0,X,Y 'Places sprite 0 at the values of the X and Y variables. SPCHR... 'Put the code that changes the sprite's image here SPANIM... 'Animate the sprite here.
0そうだね
プレイ済み
返信[4]
親投稿
mystman12 mystman12
That's just a basic outline of what the code should look like, just fill in the blanks with what you need to animate the sprite properly. Hope this helps!
0そうだね
プレイ済み