So, to get to know Stencyl, I'm trying to home grow some platformer code. But I've run into an issue.
I'm trying to implement some jump limiting code with the possibility of a double or triple jump, but I'm having an issue were the count of jumps gets instantly reset just after leaving the ground.
See it here (WASD controls):
http://www.stencyl.com/game/play/14255This should only be a single jump, but you get a double.
Anyone have a clue what could be going on?
Here's what I got:
Two attributes:
numJumps:Number = Max number of jumps
curJumps:Number = whatever the current number of jumps is
Here's my jump code blocks:
Here's my collide bottom code blocks:
Is there something going on behind the scenes of Stencyl that I don't know about? Or do I have to order my Events in such a way that makes it work? (I couldn't figure one out)
Any help would be appreciated! Thanks!