Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8930

spawn without overlapping using tables

$
0
0

Hi guys

I'm using this demo from @tshirtbooth to spawn without overlapping and converted it to iPad size with a 64x64 tiled grid.

I want to spawn several actors when the level generates. So I have an attribute randomly choose the actor to spawn so if the attribute is 1 spawn actor 1 ,if 2 spawn actor 2 etc.

The different actors are spawned but now there are some overlaps.

Is there a way to turn the grid position to occupied so that during level generation and even after the level is generated I can spawn power-ups for example without overlapping?


Viewing all articles
Browse latest Browse all 8930

Trending Articles