How to random spawn actors?? PLEASE HELP

connormaxlinconnormaxlin Member Posts: 2
edited November -1 in Working with GS (Mac)
I am trying to make a game but I got stuck. I want 20 actors to fall from another actor randomly. How should I do that???

Thanks

Comments

  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    What about them do you want to be random? Their speed, direction, position, color, image, age, weight, sex, religion, salary, hair style...?
  • connormaxlinconnormaxlin Member Posts: 2
    There spawn. When they fall, I want them to fall randomly.

    Thank you
  • RiffelRiffel Member Posts: 1,272
    open Basic Shoot em Up project on GameSalad, look at the behaviors of "spawner" actor
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    Hmm...

    If there will always be 20, you're are better off just putting them in the scene out of view instead of spawning.

    With all of the actors on the scene, I would create a rule that says when self.time is > random(1,30). That would make it so that all of the actors fall at some point between 1 and 30 secs into the level.
Sign In or Register to comment.