TheNegroShoddy
Member
I could use some help trying to figure out how to implement jumping for one of my enemy AIs. Normally the solution would be as simple as using gravity and vspeed, but for the type of game I'm making that won't work. I'm working on a grid-based battling game in the vain of Megaman Battle Network (MBN). In MBN, the player and enemy can move to tiles on their respective sides of the grid. In my game, each panel is numbered from 0 to 23 as you can see in the image below:
I want to make it so that an enemy can jump from tile to tile, but I'm not entirely sure how to implement this. My best guess is using z-axis instead of the normal method used in making stuff like platformers, but I think I'd also need the enemy to maybe jump at an arc. For example, I might want the enemy to be able to jump from 20 to 23, 7 to 21, or 7 to 4.
Any idea of how I can go about coding this?
I want to make it so that an enemy can jump from tile to tile, but I'm not entirely sure how to implement this. My best guess is using z-axis instead of the normal method used in making stuff like platformers, but I think I'd also need the enemy to maybe jump at an arc. For example, I might want the enemy to be able to jump from 20 to 23, 7 to 21, or 7 to 4.
Any idea of how I can go about coding this?