Hello everyone !
I would like to have multiple instances of the same object in the scene and each one should be rotated towards the next instance of this object.
This object has an instance variable called "ID" and each instance have a different ID. So, I would like the instance with the ID 0 rotated towards the one with the ID 1. The 1 towards the 2 and so on.
But my logic seems to be wrong in the event sheet. Could someone help me ? Thanks a lot !
The project file
Develop games in your browser. Powerful, performant & highly capable.
The orientation is wrong of your sprites. 0° is to the right, so you have rotate them 90° to the right in the Sprite-Editor.
And then this should work:
System: For each aim -> aim: Set angle toward (aim(LoopIndex+1).X, aim(LoopIndex+1).Y)
It works pretty well !
Thanks a lot Asmodean