top of page
game developer

Jump calulation tool
For Operation Starfall, I created a tool that will help level designers quickly put levels together! Let's take a look.
What does it do?
The jump calculation tool will place two points in the editor. One represents the player's base, and the other represents the goal (the place you want to jump to). A line will be drawn between these points; if the line is green, the player will be able to make the jump. However, if it turns red, the distance is too great, and your player will not reach the goal.
I made this so that level designers can easily assemble levels without having to enter play mode to test if the player can make the jump. This will save time and frustration!

Now that you know what it does, let me explain how it works! Don't worry, I'll just go over the basics.

First, when the user presses the spawn points button, I look for the center of the scene view and ensure that the points are spawned there, with a bit of distance between them.

When that is done I want to draw an ellipse around the player's base point based on their jump. There is a lot of code that handles this, so I'll show you a snippet of it!

After that, it is time to check if our goal is inside of the elipse!

And finally, lets give our line colour based on its position!

And that's it! of course there is a lot more options but these are the basics.
Want to see more? be sure to contact me!
Our game is still a work in process so unfortunatly the git repo is private
bottom of page