Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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
I have a ship and it creates an antenna that couples the ship, after a few seconds the system creates one more ship (same object as the first ship) and that second ship creates another antenna that couples the second ship. is there a way to get the antenna id of the first and second ship?
Do you mean to get the data and use it in code or simply view it? In debug mode you can see the ID of the objects. Also think about putting the ship and antenna in a 'container' where you can create them as one object.
Develop games in your browser. Powerful, performant & highly capable.
If you pin them together and they are not in a container, you can use PinnedUID
To pick Ship: "Ship -> Pick by unique ID=Antenna.Pin.PinnedUID"
To pick Antenna: "System-> pick by comparison Antenna where Antenna.Pin.PinnedUID=Ship.UID"
in the game more ships will respawn in some minuts. how can pick the pin id from every antenna?
Maybe use "For each antenna" loop?