Problem:Spawns 2 random actors at the same time

aimer_s19aimer_s19 Member, PRO Posts: 10
edited March 2016 in Working with GS (Mac)

Hey guys I need your help.
I'm working on a game and I want to spawn only one Sad panda at a time.In the start the game works just fine but after clicking on some sad pandas 2 sad pandas appear on the screen


when touch is pressed. the sad panda gets destroyed,and it chooses randomly.
to make sure the random number does not repeat itself.

Chooses the random number for the first time.
can someone please tell me how can I stop the actor spawning twice on the screen at a time.
Thanks :)

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    And what does the random number generation have to do with any of this? Do you have 14 separate rules for spawning an actor? Post a screenshot of at least one of them.

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

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,879

    Here is a generic template that might help:

  • aimer_s19aimer_s19 Member, PRO Posts: 10

    I was using this to spawn the actor.Solved the problem I was actually using same number for two actors thats why it was spawning twice.Thanks for your help @tatiang @RThurman :)

Sign In or Register to comment.