#Player gets stuck in shape when jumping

21 messages · Page 1 of 1 (latest)

robust scarab
#

Hi, my character gets stuck in a shape when their collision shape hits another one, this only happens when the gravity in my game is inverted, how can I fix this? the current system of inverting the gravity is detected by an area2D, which then causes the gravity to change. This doesnt happen when the gravity is normal though

#

this is the player getting stuck in a shape after jumping, it is supposed to come back down to the blue platform

still apex
#

could it be because it thinks it is on floor?

robust scarab
#

ohh that might actually be it

#

i dont know how to avoid that though, do you know how?

still apex
#

I am not sure if changing your motion mode to floating would break your game

robust scarab
#

i'm not too sure, how would I do that though just to try

still apex
#

in the CharacterBody2D inspector

#

is the first option

robust scarab
#

ah yeah i see

#

it does mess up all the controls

#

is there a way I can swap the identity of "floor"?

still apex
#

I don't follow. What do you mean. Make ceiling the floor? I don't know how to do that

robust scarab
#

hmm ok

#

that is what I meant

#

do you think there are any other solutions?

still apex
#

not really

#

I have seen some people programmin stuff like this using raycasts

#

maybe look up on youtube

robust scarab
#

alright i'll check it out, thanks

balmy iris