Jumping in platformer

Hello,

Beginner here so this may be an easily answered question. I want to implement a platformer but rather than have a set “platform” that the character moves horizontally I want him to be able to move up and down on Y axis. This is similar to Castle Crashers where basically the ground is the bottom half of the screen. Sort of a half-screen top down like game. The problem is jumping. I can’t implement the ground check method in the 2d platformer tutorial because the “ground” is the whole bottom of the screen.

Any tips or ideas would be greatly appreciated.

Thanks!

Simple answer: record their y when they initiatiate the jump, ground is when they reach it again.

This is a great tutorial on the basics of 2D platforming.

Also this live session will go through everything also:

Hope this helps! :smile: