Rocket launcher enemy jumping out of map

 Author: Pedro Polanco    

    The issue was that at times the rocket would jump out of the playable area sometimes due to his jump target position being outside of the map. This would be a really bad thing to see for the player because the enemy would jump outside of the bounds and come back in which would be really weird and look awful.

    The way I fixed it was by making the enemy predict where his target is going to be and if it outside of the bounds, he will instead flip directions and jump away from the bounds. This in the players eyes will look like the rocket just jumping over the player or away from him which will look much better than crashing into the wall.

Comments

Popular posts from this blog

Adding assets to every enemy -- Owen Meyers

Sphere to AABB collision