How do I make things spawn randomly around the layout?

Get help using Construct 2

Post » Thu Jul 09, 2015 7:35 pm

I am making a small game and I want to have enemies spawn in from top, bottom, left and right. How can I make this random?
B
3
Posts: 6
Reputation: 187

Post » Thu Jul 09, 2015 7:42 pm

You can have System Spawn Object at position, then for the X and Y coordinates, use random(0, layout.width) and random(0, layout.height).
B
11
S
2
G
1
Posts: 79
Reputation: 842

Post » Thu Jul 09, 2015 8:23 pm

..If I understood..correctly...around the layout.capx
Image
B
65
S
23
G
7
Posts: 1,505
Reputation: 10,896

Post » Fri Jul 10, 2015 7:00 am

Thanks korbaach, that did work! Works now!
B
3
Posts: 6
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: engin20020, gamecorpstudio, tarek2 and 23 guests