#how to i make a character bounce when turning around 180 degrees in a 2d game?

4 messages · Page 1 of 1 (latest)

viral maple
#

the issue i have more in detail: so when it tries to bounce it only bounces sometimes (i guess it could be because the steering and the frequency of the frames mess with the change from old to new position)

i was wondering if there was a "smarter" way of doing this with a raycast or something

foggy crypt
#

I'd make specific walls scene the player can bounce of. and then just use the on body entered signal. turn their velocity.x around by multiplying with -1 and adding some velocity.y to make sure he's "bouncing"

foggy crypt
#

Hope this helps