Posted by Aardvajk, 27 May 2014 · 358 views
About time I updated here. Been working on edge grabbing and shimmying. Animations are a bit pants but the basic actions are working okay.
Shimmying thankfully uses the same edges I generated for the edge walking in previous entries here. I just use a closest point to line method to check whether both hands are within range of an edge, then generate an edge based on the positions of the ends and the normal. Player rotates to face the normal and then can shimmy along by just trying to move the player along the edge in the requested direction with a test to see if the new position also has two valid hand positions.
It works okay, although the behaviour is a bit odd as you move from one shape to another. Need also to work out a way to lock you properly to the end of the ledge, and to stop you entering shimmy mode if there isn't room to move, but the basic idea is there.
Nice thing about this more cartoony style of jumping is I'm freed from making complicated "climbing up" animations. Actually jumping up or away from a grab position is literally just a case of switching into the jump state, so that is quite clean and looks good I think.
I'm using CamStudio for the videos by the way, since there was some recent discussion about screen capture. Very easy to use and acceptable results without any frame rate loss while recording.