Problem:Spawns 2 random actors at the same time
aimer_s19
Member, PRO Posts: 10
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
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
Here is a generic template that might help:
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