How to find the direction an object is facing and rotate another to that

I need to find the direction a sprite is facing and rotate another one to that same heading

That would depend how you move your sprite?

If you rotate it you can sate it to -180

If its topdown then you can check angle of movement

With forces you would check same thing

I use walk3D. Does that change it? There is no way to find rotation, I believe.

@ZeroX4 I figured out how to rotate, but how to I make an instance of an object stop rotating while another instance rotates?

You could warn its for 3D
Anyway try using repeat for each object
Right click event click add click repeat for each object


Im confused on what you mean. I am using this code, is there a way to make it so Path never notates again after it rotates?

Wait it is 3d or is not not?
Cause i seen there
image

Anyway you can set rotation once for every car depending on its position

0 is right
90 is down
180 is left
And up will be either 270 or - 90

I want to rotate Path once

I don’t understand what that means

I think I figured it out

1 Like