Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Enemies moving in curves at a constant speed

$
0
0
Currently I am using the Pythagorean theorem to determine how much the X/Y values should be increasing for when I am tracking the Player.





However the problem is that the enemy slows it's speed as it approaches it's goal. Should I be using the values as a ratio instead of the increase in X/Y?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>