Project - Jumping


After laying all of the levels out and diving into the coding, it the jumping that stumped me.

It wasn't the jumping itself that was the issue, there was an issue with carrying it through scenes. The setup of the scenes means that you finish the scene and the next is a scene with text and a button, trying to explain a little bit of the story, the text is the characters thoughts.

The issue i was having is that i was referencing an old code id used and tried to use that as a guide to code this. it worked. But only under circumstances, for example, there was a number of jumps that could be used in a scene, either one after another or mid-air jumps. After you reach the limit you couldn't jump in that scene anymore. On the first playable scene, i had this number set to 1 as i did not want a double jump, but i wanted and needed to jump multiple times. However it was allowing me to do so, level 1 was perfect, I'd had the height of the jump where it needed to be to consistently make it up these ledges.

But then when i progress to the next playable scenes, it would only let me jump that set amount of times. The counter is meant to reset when the character is back on the ground, however it wouldn't allow me to jump again at all. And other than the first playable scene, this was the case I kept having.

However, during a late night session and frantically looking for the correct tutorial for what I required, I came across a couple that i managed to understand how the different parts worked. I managed to combine my knowledge with these two, and write a short piece of code in place of what i had already, solving my issue and allowing me to have the character movement I was after.

Get Between The Times - Downloadable

Leave a comment

Log in with itch.io to leave a comment.