Spawning Random Actors from another actor
![TopoftheTemple](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
I'm trying to spawn a random actor (game lore sticky note actor) upon touching an item dropped from a defeated enemy. I already have the enemies dropping the item, but I don't know how to spawn a random actor once players have touched the item.
Thanks.
Thanks.
Best Answer
-
jonathan_pan Posts: 21
@Wideline_Productions,create an integer and call it spawn what actor. Then create a rule and say if touch is pressed change game.spawn what actor to random 1 to any number you want.game.spawn whatactor is equal to 1 spawn this actor and so on increasing the number each time.
Hope this helps.