プレイ日記
Danny vutigp
Can someone please help me I am trying to make a platformer but he won't move and animate at the same time. Its the top one.
1そうだね
プレイ済み
返信[1]
親投稿
Cris cmart592
I can upload a 2d chr move prg when I'm finished with spofs and stuff.
0そうだね
プレイ済み
返信[2]
親投稿
Danny vutigp
Ok
0そうだね
プレイ済み
返信[3]
親投稿
raimondz raimondxz
I see the problem. You're changing the sprite in one iteration of yoor loop and moving using vx instead of px. Also, you're using wait between sprite changes. You should use vsync instead of wait and only at the end of the loop. Also, you should use a proper game loop and def instead of goto (I don't know if you feel ok reading your code but goto and label seems messy)
0そうだね
プレイ済み
返信[4]
親投稿
Guy brilliance360
I deleted a lot of your code, but what I wrote should work like you expect. SPANIM is a command you should look into. In your original program, you were using both SPSET and WAIT for each iteration where SPANIM combines the two. I also included animation for walking the opposite direction.
1そうだね
プレイ済み