プレイ日記
*J.P.*[P]£ aj2003aj
I need help making a better animation code, this one when used causes a lot of slowdown in the game, i would like to maybe use spanim..? but how would i make it only go when the circle pad is pressed (using my circle pad movement code is preferred) so just up down left and right. if you could help that would be awesome! thanks, -*J.P.*
2そうだね
プレイ済み
返信[1]
親投稿
raimondz raimondzz
Check this key [DFDEES3]. I haven't commented the code but what it does is store the state of the animation (And using the button constants to use the same states of the buttons) and play the animation if the state change. Also, call vsync once per cycle (After doing all the changes on the screen).
1そうだね
プレイ済み
返信[2]
親投稿
Guy brilliance360
I don't know if you have any other uses for D_ANIM or L_ANIM than what you show here, but from looking at the help function for SPANIM, you should be able to replace lines 634-640 and 648-654 with a single SPANIM code each. Maybe something like SPANIM 200,"3",5,1108,5,1109,5,1110,1111
0そうだね
プレイ済み
返信[3]
親投稿
Guy brilliance360
As far as functionality with the circle pad goes, you should be able to detect if the circle pad is being pressed, and then you could use SPSTOP to stop animation when the circle pad isn't being pressed.
0そうだね
プレイ済み
返信[4]
親投稿
Guy brilliance360
I messed up the code up there. Should be SPANIM 200,3,5,1108,5,1109,5,1110,5,1111,0
1そうだね
プレイ済み
返信[5]
親投稿
Josiah Spike4
Take a look at how I did animation on the game I sent you
1そうだね
プレイ済み
返信[6]
親投稿
*J.P.*[P]£ aj2003aj
ok thanks guys, ill look into all of those
2そうだね
プレイ済み