#having trouble with touchended()

1 messages · Page 1 of 1 (latest)

shut phoenix
#

so im tryna make a walljump that doesnt stick you to the wall.
when the player touches a wall, it does the touched function and checks to see if theyre airborn.
i tried to use touchended() to detect when the player gets off the wall, but touchended for some reason triggers even when im walking into the wall.
is their any way to detect if they stop touching the wall without touchended?

#

having trouble with touchended:()

#

having trouble with touchended()

radiant root
#

yeah TouchEnded is just cooked for this use case, it fires on micro-separations constantly while you're still touching the wall. just raycast sideways every heartbeat instead, and check FloorMaterial for airborne since that's what the engine uses internally anyway

keen pasture
#

i would use raycast tbh

#

might sound weird but you would know if theres a wall in front of u

shut phoenix
#

Ok thanks