プレイ日記
MikeATD corb1477
Does anyone know a code to share with me that can give my sprite/player actual gravity? I need to know this, because everything that i tried just made my character fly up endlessly!
3そうだね
プレイ済み
返信[1]
親投稿
egaSyeliR 6letterminimum
try something like having a y-accel variable, ill try it right now
0そうだね
プレイ済み
返信[2]
親投稿
egaSyeliR 6letterminimum
this worked for me. remember that negative y acceleration goes up, so i made it dec y,yacc instead
0そうだね
プレイ済み
返信[3]
親投稿
MikeATD corb1477
Thanks! It worked really well. Now i'm running into another problem. I can repetitively press the jump button, and he just jumps in the air shortly after into space
0そうだね
プレイ済み
返信[4]
親投稿
egaSyeliR 6letterminimum
Yeah, i havent worked out any sort of collision. basically, when collision is happening then yacc=0 and you can jump
0そうだね
プレイ済み