Error with jump behaviour

designedbydj

  • Posts: 5
Hi I'm running Stencyl 3.0 on Mac OS X Mavericks.

My simple platformer based on the Crash Course Kit and which uses behaviours from the Platformer Movement pack was working great until I suddenly started getting this error:

[ERR] java.lang.NullPointerException
[ERR] java.lang.NullPointerException
[LOG] Unexpected problem on thread AWT-EventQueue-0: null

At first it rendered my game unusable, when I tested the scene my Player would not be visible and no controls would do anything, it was totally frozen. After deleting that Actor and creating a new identical one I can now move the Player around as before but I've noticed I keep getting this error whenever I add the Jumping behaviour. The walking behaviour also does not function properly with the Player frozen in the Walking animation.

The problem is not specific to this game either. I created an entirely new game using the Jump and Run kit and I get the same Error code and the main Actor will not Jump.

Any help would be hugely appreciated, this project is for a student competition and my deadline is Tuesday!

Kind regards

Daniel

Hello mate!

I have made a platformer Player, with everything you need!

Go to Stencyl Forge and search for {Jumper}.

I hope you win! And hopefully you can credit me a bit ;D

I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (http://www.stencyl.com/game/play/25588)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!

designedbydj

  • Posts: 5
Thanks I just downloaded it and tried to add your Jumper actor to my game, immediately got this error:

Running (199) -  Not enough arguments
Running (199) -  Function 'asNumber' requires arguments
Running (201) -  Not enough arguments
Running (201) -  Function 'asNumber' requires arguments

Dammit! xD

You need to take out the, wait a minute. I'll repost it, download it again!

I left a Follow Player X and Y in it sorry, it's fixed.
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (http://www.stencyl.com/game/play/25588)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!

designedbydj

  • Posts: 5
Same thing again but I figured the running behaviour needed to be removed, done that and seems to be working fine now so thanks! I'll let you know if I run into any probs and if I win will obvs credit you :)

Awesome! Good Luck!
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (http://www.stencyl.com/game/play/25588)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!

designedbydj

  • Posts: 5
Hi mate, the animations for Jumper dont seem to work, just has Default animation no matter what.

This is weird, do you have stencyl 3.0? If you want we can share screens on Skype or twitch! :D

And i'll guide you.
I'm 17 years old, here to help and Entertain. {Also to make fun games}
ADAM: (http://www.stencyl.com/game/play/25588)
Also, if you need help making a platformer, search {Jumper} in Stencyl Forge. This is a player with everything you need in it, that i made. Enjoy!