can we separate spawned instance behavior from actual prototype actor

can we separate spawned instance behavior from actual prototype actor,yes i want to give different behaviours for prototype and its instances when they are spawned

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    Just make a duplicate of your main actor, give it different rules/behaviours, and use it as the spawned actor.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    There is one other way. In the spawner actor, change a boolean (e.g. game.spawning) to true. In the spawned actor (your prototype actor), have a rule that says When game.spawning is true, change attribute self.instance (boolean) to true. In the spawner actor, after the actor(s) spawn, change game.spawning to false. Finally, in the prototype actor, enclose any behaviors/rules you want for the spawned actor in a When game.instance is true rule.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Check this video too it might give some ideas.

Sign In or Register to comment.