Spawn actors randomly inside another actor

So, I have a grid system going on, with a top-down game I made, where my floor consists of lots of squares, called tiles, and I want all my actors (walls, protagonist, enemy, resources etc.) to spawn randomly every time I press play. But only once, and they have to spawn inside the tiles. I know I can set a random coordinate relative to scene, but they always end up in the cracks between the tiles instead of on top of them. So how can I make them spawn randomly, but only in the middle of each tile? I have a feeling it's got to do with attributes, but I don't know if I can randomize those.

Comments

Sign In or Register to comment.