How to avoid spawning actors that are overlapping?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited January 2012 in Working with GS (Mac)
Hey there,

I have two actors. When an attribute equals 1, the object gets spawned in the middle of the scene. When 0 on the bottom and 2 on the top.
They are both spawned after random seconds. But how do I avoid that they are not spawning the same time or very close to each other..

The actors are then moving when getting spawned...

Thanks for help...

Alex

Comments

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Very cool,

    but does this also work when having 4 different actors to be spawned and only having one attribute that changes
    every 2 sec. it's value?

    Alex
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay thanks but maybe my problem is a bit different.

    I have a jump and run game. And I have a destroy actor getting spawned and a collect actor.
    And for each of these I have just 3 positions to spawn ( when the objects got spawned,they accelerate left)
    The spawn positions are for destroy actor and collect actor the same ones. I have two different attributes changing every 2 seconds their value
    from 0,1,2. Then the actors get spawned.

    But sometimes they spawn and are overlapping.

    Thanks for your help tshirtbooth...really appreciate that

    Alex
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Ahhhhh it is driving me crazy ://
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Always the X position 680 and y positions are:

    1, 39
    2, 102
    3, 239

    Thank you very much
Sign In or Register to comment.