Any update on the following thread? (spawned-actors-spawning-actors-that-follow)
robert.j.mccarthy
Member Posts: 4
Hello All,
I have been searching the forum for an answer to a problem I have, and actually found a discussion about this over 6 years ago. The discussion is closed, so I wondered if anyone knew if this was possible now?
I'll link to the original post below, as well as copy the original question:
http://forums.gamesalad.com/discussion/20993/spawned-actors-spawning-actors-that-follow
"how do you spawn a ship, spawn a thruster and then make that specific thruster follow that specific ship??"
Basically I want to spawn 'Actor1', which in turn spawns 'Actor2' & 'Actor3' and constrains themsleves to 'Actor1'. However I want multiple 'Actor1' on the screen.
I hope that makes sense
Many thanks,
Rob
Comments
@robert.j.mccarthy
look into the use of tables for this.
So instead of using one set of game level attributes to track the X/Y position of one actor, use a table to store the X/Y positions for each main actor in separate rows.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Ah, so when spawn keep the x/y of each in table rows. Then keep each of the other actors constrained to the relevant row of x/y. I'll give it a try and let you know how I get on.
Cheers,
Rob