Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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
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)
Develop games in your browser. Powerful, performant & highly capable.
It works pretty well !
Thanks a lot Asmodean