Jumping/Air Jumping with the "Jump and Run" behaviour set

Limealicious

  • Posts: 10
Hi! I'm primarily an arts student but for our brief this term we need to place our artwork within a game engine. I chose Stencyl because the preset behaviours are great and it generally means I don't need to configure too many behaviours alongside completing my actual work brief.

The preset behaviours with the Jump and Run set are great. I only have one issue -- if my actor walks off of a platform (without jumping) or hits another platform (in the middle of his first jump), he then can't double jump. This makes recovery and precision kind of irritating, as my intended levels have been designed by another and are full of small platforms and closely placed tiles.

I'm assuming that something needs to be placed about an 'is falling?' condition in the air jumping behaviour, but I don't know enough about the program to really take a proper stab at it. Could anyone provide a bit of help?

I'm using the Jump and Run behaviour set, with no modifications. Thank you!

EDIT: Renamed the behaviour set, made a mistake. Sorry! To clarify, this is still unsolved. :)

« Last Edit: February 07, 2013, 11:23:47 am by Limealicious »

Limealicious

  • Posts: 10
Just noting that this is still unsolved -- apparently my edit made it look like it was fixed. Sorry!

Meestar

  • Posts: 654
Have you tried restarting the jump and run kit?  Can you normally double jump off the ground?  A little more info would definitely help me to help you.
PM me if you require help.  I'm always glad to help out!

Limealicious

  • Posts: 10
Yep, I can double jump off of the ground. The jump behaviours work perfectly -- the only issue is when I try to jump after having walked off of a platform, instead of jumping off. Or, if I hit a platform with my first jump I then can't double jump. So I'm guessing it's a problem with what the behaviour checks to allow a double jump.

Here's the code for that behaviour. I haven't touched any of it:




Meestar

  • Posts: 654
Show me the checkposition code because that seems to be where the code decides whether the player is falling or not.
PM me if you require help.  I'm always glad to help out!

Limealicious

  • Posts: 10


Thanks for your continued help! Sorry if I'm a bit obtuse -- this is the first time I've used Stencyl.

Meestar

  • Posts: 654
On your actor do you have "Must be Rising" checked or unchecked?  The code looks solid to me, so it has to be the way the behavior is configured on the actor.
PM me if you require help.  I'm always glad to help out!

Limealicious

  • Posts: 10
Nah, I don't have 'must be rising' checked. I can actually double jump when falling providing I jumped, then fell, then jumped in mid air. If my character straight out walks off of a platform without jumping, then I cannot jump at all and plummet. It's very odd.

Meestar

  • Posts: 654
Nah, I don't have 'must be rising' checked. I can actually double jump when falling providing I jumped, then fell, then jumped in mid air. If my character straight out walks off of a platform without jumping, then I cannot jump at all and plummet. It's very odd.

Yeah, not really sure what to tell you besides try restarting the game using the kit.  Or I can make you a jump behavior.  Not sure if it'll work with the kit, but it'll work.
PM me if you require help.  I'm always glad to help out!

Limealicious

  • Posts: 10
Thanks again for the help and the offer to code. It does seem to be a limitation of the kit, as I started a completely new Jump and Run based game and used their 'Jumper' actor and default scene to test. I still have the issue where running off of a platform disables any double jump behaviour.

I found this topic and the person seems to have had the same problem as me, though I don't really understand the solution they found.

http://community.stencyl.com/index.php?topic=1791.0

Limealicious

  • Posts: 10
Nevermind. It seems as though the person in the thread uploaded their new behaviour to StencylForge. Problem all solved, thank goodness.

EDIT: Well, almost solved. There's a problem with the behaviour in that it keeps rising if you hold down the jump key. Back to problem solving!

« Last Edit: February 11, 2013, 01:49:20 pm by Limealicious »

Limealicious

  • Posts: 10
And, I finally fixed it. The animation wasn't playing and the actor would float off into oblivion if you held the button down. Using pieces of the air jumping behaviour I fixed those issues and it works perfectly now. Thanks again for your help, Meestar! :)

Meestar

  • Posts: 654
And, I finally fixed it. The animation wasn't playing and the actor would float off into oblivion if you held the button down. Using pieces of the air jumping behaviour I fixed those issues and it works perfectly now. Thanks again for your help, Meestar! :)

You're very welcome!
PM me if you require help.  I'm always glad to help out!