I'd like it to stay flat without any rotation while it follows the player around, ala a tile based game only I'm not doing tile based movement. Does this make sense? I hope so.
Any help would be much appreciated. Thank you!
Will the follower be moving at the exact same pace as the followed?
Will there be a delay, or a certain distance between them before he starts following?
Develop games in your browser. Powerful, performant & highly capable.
Nope, I plan to have the follower be a bit slower and I'd like him only to follow if he's visible to the actual player looking at the screen.
Check of the object is in the screen.
Give him custom movement.
Check if Follower.X > Followed.X,
If it is, set its horizontal speed to eg. 3
Else, set its horizontal speed to eg. -3
Check if Follower.Y > Followed.Y,
If it is, set its vertical speed to eg. 3
Else, set its vertical speed to eg. -3
To make him stop when near the followed.
Check if distance(follower.Y,0,followed.Y,0) is NOT < eg. 50 when doing the above events.