|Topic was automatically imported from the old Question2Answer platform.
Anyone have any insight on how to code this type of enemy? I’ve been toying with it for a couple of days working with code originally used to make ballistic projectiles like arrows arc to the player’s position but it’s just not quite coming together.
It doesn’t seem like it should be too difficult because I can determine the distance from the enemy’s position to the player’s position but I wonder if there’s an equation or something that I’m unaware of to make it work? It’s a pretty common pattern for enemies in 2D games too, so it’s odd that there isn’t much information out there about implementing them.