How do I spawn 30 objects on grid of 60 spaces

Get help using Construct 2

Post » Fri Jan 23, 2015 1:00 am

Hi all, please help.
I am wanting to spawn 30 items at random positions on a grid. I have set up 60 spawn points and I would like to spawn 30 items at any 30 random points but so that they don't overlay each other.

This is the grid

Image

The red dot has to spawn once on a separate yellow spawn point , 30 times.
What's the best way to achieve this.

Thanks
B
28
S
6
G
2
Posts: 86
Reputation: 3,267

Post » Fri Jan 23, 2015 4:43 am

RandomArray2 is very helpful.
plugin-randomarray_t63557?start=10 (look at last post - points to https://github.com/nutmix/RandomArray2)
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
241
Posts: 3,734
Reputation: 134,494


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 46 guests