Hello,
I'm trying to make a top-down shooter. The player sprite is moved by 8Direction keys. I want to set a target sprite:
e,g, target | Set position to (Player,X, Player.Y - 100)
and lock it to that distance from player, so if player moves between angle, the target will rotate or move to the players direction
[
[sorry, I'm a maths failure and I'm trying studying algebra again]]
--example-----
[t]
target
player
-------------
if player is facing north and presses key D, then
[t]
target rotates from North to East at set distance from payer.
I HOPE THIS MAKES SENSE!
The easiest way I can think of is, have a circle set against player and target follows cursor, but is restricted to circle (this is not the preferred method).
Thanks again,
Roberto