プレイ日記
smashio XZelda-HolicX
FIRST OF ALL MARIO IS NINTENDO PROPERTY THIS IS JUST FOR EDUCATIONAL PORPUSE. lol now that, that is out of the way...so i made mario bounce and lose velocity each time it goes down the y axis. and i have a bounce counter. the thing is that the bounce counts each time it goes down to the y axis. how can i make it stop counting when it stops jumping? here is the public key if someone want to help.
3そうだね
プレイ済み
返信[1]
親投稿
smashio XZelda-HolicX
E323QPHX
0そうだね
プレイ済み
返信[2]
親投稿
Aaron Krondelo
Can you reword your question it doesn't really make sense. You want the bounce counter to reset at a certain point?
1そうだね
プレイ済み
返信[3]
親投稿
smashio XZelda-HolicX
I want the counter to stop when the character stop bouncing.
0そうだね
プレイ済み
返信[4]
親投稿
PChicken NerdChicken
when the player jumps from the ground, set the bounce counter to whatever amount of bounces you want. then, when the player hits the ground, if the bounce counter is bigger than 0, set the y velocity to -75% of the original y velocity. should work in theory.
0そうだね
プレイ済み
返信[5]
親投稿
smashio XZelda-HolicX
you realize that doesn't help at all you know.
0そうだね
プレイ済み
返信[6]
親投稿
PChicken NerdChicken
dude that is straight-up bounce-handling code in words can you put some effort forward yourself
0そうだね
プレイ済み
返信[7]
親投稿
PChicken NerdChicken
also, what exactly were you looking for? i need a concise explanation of what you want. is it that you're counting jumps? counting literal bounces? bouncing based on the bounce count?
0そうだね
プレイ済み