spawning problem

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

Answers

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You could have actor 1 spawn actor 2 automatically by placing an spawn behavior in actor 1 that spawns actor 2.

  • djdeedjdee Member Posts: 180

    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.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    I see. You could probably add the spawn behavior in a timer then and make it random, something like this:

    In actor 1:

    Timer » After Random (1000,5000) 
    
    Spawn actor 2
    

    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.

  • djdeedjdee Member Posts: 180

    Thank you @jamie_c‌ :)

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're very welcome.

Sign In or Register to comment.