Spawn actors anywhere on the screen except where one actor is at. HOW?
Hello.
I have a game where you control a ball with your finger by dragging, then every 1.5 seconds another actor is spawned randomly on the screen, I want to make it so that it doesn't spawn on top of the actor I'm dragging around.
Please help
I have a game where you control a ball with your finger by dragging, then every 1.5 seconds another actor is spawned randomly on the screen, I want to make it so that it doesn't spawn on top of the actor I'm dragging around.
Please help
Comments
> When an actor is trying to spawn somewhere, place an invisible test actor the same shape in that place that will return weather it collides with and object.
> If so, try another place. Go to beginning.
> If not, place that actor there.
Good luck!
What im doing is create rule: All - Actor recieves event - overlaps or collides - with actor of type - my actor
I leave the first behavior empty and then i put Spawn actor - random ting in Otherwise.
Ive tryed making 8 copyes of this but they still spawn at the same location sometimes.
I tryed to put the next rule into otherwise having a big stack of otherwise.
It seems like they all spawn at the same time. Is there a way to put a little delay up after each spawn like 1ms or something to make sure the test is done at the right time?