GapingPixel
Member
Was wondering about the ways I can implement a Jumping behavior for an enemy on an Top Down game.
My initial idea was to just add a gravity variable and apply it while making the jump. But thing is I can't make it so it goes thro solids, because that would cause that the enemy would get out of the playable area at times. So I'm looking for a way of making it, so the enemy first sets a target for the landing(within the playable area) and then it would execute the leap, before calculating the direction/force needed to get there.
This is the kind of movement I want to add to my project.
My initial idea was to just add a gravity variable and apply it while making the jump. But thing is I can't make it so it goes thro solids, because that would cause that the enemy would get out of the playable area at times. So I'm looking for a way of making it, so the enemy first sets a target for the landing(within the playable area) and then it would execute the leap, before calculating the direction/force needed to get there.
This is the kind of movement I want to add to my project.
Last edited: