hanging on edges
-
what is the preferred method for a character to hang or grab an edge of a cliff/platform
hit box or if possible 2 collide boxes -
have a state where the grabbing occurs, maybe like when a collision is detected on the hitbox of the cliff with the character, you are pressing into the direction of the cliff, and your y coord is above a certain threshhold compared to the cliff.
Set a state variable grabbing = true and if that is true do not apply velocities to the position. When jumping or crawling up set grabbing = false and apply velocities for the jump or the up-crawl -
@Jaywalker cheers hopefully find some more time to test this out