Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Zionviller

Pages: 1
1
Resolved Questions / Re: Bottom Collision and Jumping [SOLVED]
« on: August 20, 2012, 09:45:22 pm »
Thanks! That fixed it perfectly!

2
Resolved Questions / Bottom Collision and Jumping [SOLVED]
« on: August 20, 2012, 03:29:02 am »
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/14255

This 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!

Pages: 1