Random object spawning

Get help using Construct 2

Post » Thu Jan 03, 2013 6:30 am

I have a game where you catch falling objects, and when you miss/catch one it is destroyed. The problem is I want them to respawn randomly, but above a certain height. When I use "X: random(360) and Y: random(360) it makes the objects randomly spawn, but all over the map. How can I make the objects spawn above 400 pixels high?

Thanks!
B
3
Posts: 3
Reputation: 331

Post » Thu Jan 03, 2013 9:07 am

@Unmerciful Give them a specified random range on the Y axis, like random(1,100) or whatever works in your layout.
B
56
S
15
G
10
Posts: 910
Reputation: 11,972

Post » Fri Jan 04, 2013 6:44 am

seems to work, thanks :)
B
3
Posts: 3
Reputation: 331


Return to How do I....?

Who is online

Users browsing this forum: newt and 23 guests