Spawning Actors in a 2D game

meppley7meppley7 Member Posts: 9
edited March 2014 in Working with GS (Mac)
I am trying to spawn a actor in a Boolean X side scrolling game.

I need the actor to spawn from the far right side in front of the actor. However, he can not appear on the scree until 3 seconds has passed within the game.

How would I do this? I have tried so many different ways but nothing is working correctly.

Any help would be great, and below is a picture of what I need to happen.

|-(This is the line where the screen would end.)



Actor 1 <---------|------- Spawning Actor





Comments

  • jigglybeanjigglybean Member Posts: 1,584
    try a timer? After 2 seconds spawn actor X

    Like Balls? Then click here! We've 100 coming soon

  • meppley7meppley7 Member Posts: 9
    edited March 2014
    Yes I have this already done. I guess the real question is how do I add the spawning behavior to the scene, without it being visible. Does the actor I am wanting to spawn have to be put on the screen also? Or will the spawning agent make it appear?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    how do I add the spawning behavior to the scene, without it being visible.
    Place an actor on the scene with a Spawn Actor behavior in its rules. To hide an actor, add a Change Attribute behavior and change its self.color.alpha to 0. That attribute is a decimal value from 0 (transparent/hidden) to 1 (opaque).
    Does the actor I am wanting to spawn have to be put on the screen also? Or will the spawning agent make it appear?
    The Spawn Actor behavior adds an actor to the scene. You should not add the actor to be spawned to the scene manually.

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

  • meppley7meppley7 Member Posts: 9
    Thank you.
Sign In or Register to comment.