プレイ日記
TekeMan gameboyfan12345
I'm trying to make my sprite fall off of a platflrm when it touches the edges... any help?
3そうだね
プレイ済み
返信[1]
親投稿
Cris cmart592
Oh look some spaghetti code, try to make it cleaner, its hurting my eyes. Also never add wait. Why is everything so compact?
0そうだね
プレイ済み
返信[2]
親投稿
raimondz raimondxz
Is this part of a game loop? I ask because there are waits and spofs with inputs. You should isolate each action as input->update(Detect collition, apply gravity, damage)->render(Move sprite, draw graphics) Also, search for a concept called Indent Style.
0そうだね
プレイ済み
返信[3]
親投稿
Cris cmart592
Or use SPHITRC.
0そうだね
プレイ済み
返信[4]
親投稿
mystman12 mystman12
Okay, wait. Did you program game physics? (Like gravity and velocity) Or are you just trying program and manually animate for every possible scenario? Because the latter is the 100% wrong way to go about something like this.
0そうだね
プレイ済み
返信[5]
親投稿
こうやま kouyama1435
Than your cording, == IF B==n THEN (command) (command) (command)... == Please rewrite below: == IF B==n THEN (command) (command) (command) : ENDIF == This is easy to debug.
0そうだね
未プレイ