how do i do the homing attack as sen in sonic games? like when sonic is in range of the enemy, he performs a homing attack. Anybody knows how to do this?
Player - Pick nearest enemy
Compare two values - distance(player.x,player.y,enemy.x,enemy.y) is less than HomingDistance
Player - Move at angle - angle(player.x,player.y,enemy.x,enemy.y), distance 1
i dont think that worked
Thats kinda like the method i use for when doing homing missiles.
Develop games in your browser. Powerful, performant & highly capable.
Did someone says homing missiles? I kinda have an example for that:
Well thanx guys for your help