Any update on the following thread? (spawned-actors-spawning-actors-that-follow)

robert.j.mccarthyrobert.j.mccarthy Member Posts: 4
edited August 2017 in Working with GS (PC)

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 :s

Many thanks,
Rob

Comments

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @robert.j.mccarthy

    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.

    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.

  • robert.j.mccarthyrobert.j.mccarthy Member Posts: 4

    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

Sign In or Register to comment.