spawning problem
djdee
Member Posts: 180
Hi,
I wanted to spawn actor-1 in different places without overlapping my actors , so i followed one of t-shirt's video on youtube. The problem is I wanna spawn another actor (actor-2) on the exact same place as actor-1. And i can't figure as to how to do it. i tried different methods but not getting anywhere with it. Any suggestion would really b helpful.
Thank You
Best Answer
-
jamie_c ImagineLabs.rocks Posts: 5,772
Answers
You could have actor 1 spawn actor 2 automatically by placing an spawn behavior in actor 1 that spawns actor 2.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Hi @jamie_c,
thanks for the quick reply. I tried that, Actually what am trying to do is
actor1 is a box, actor-2 r coins that spawn on random boxes. if i put the spawning behaviour in actor-1 then all the boxes will show actor-2 at the same time. I want actor-2(coin) to spawn on random actor-1(boxes) that are already spawned.
I see. You could probably add the spawn behavior in a timer then and make it random, something like this:
In actor 1:
In the Timer Behavior you would use whatever values for the Random function that give you the timing you want, I just made up 1000 and 5000.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thank you @jamie_c
You're very welcome.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page