I know that i can do something with set angle toward or something but i cant figure it out.
Basically, i have a car ( boat )with the car behavior. I want to have an arrow near the player who is around him like GTA 1.
I have different spawners, then once a spawner drops a spot. i want that the arrow follow this objective.
Develop games in your browser. Powerful, performant & highly capable.
angle(x1, y1, x2, y2) Calculate angle between two points
Every x time (or tick) set the angle of your arrow to angle(arrow.x,arrow.y,destination.x,destination.y)