How do I make random platforms...

Get help using Construct 2

Post » Thu Sep 04, 2014 9:33 pm

like how i make random platforms spawn random ahead player like infront of him but not close inuf to colide it right away like in only random y and ahead x not +x anymore like not behind the player


hope u get it :D
B
3
Posts: 9
Reputation: 191

Post » Fri Sep 05, 2014 12:52 am

System -> Every 2 seconds
Create Object platform on layer x at (player.X + 150, random(10, layoutHeight))

If you wanted the platforms to be random width and height, change it to the following:

System -> Every 2 seconds
Create Object platform on layer x at (player.X + 150, random(10, layoutHeight))
platform -> set width -> (random(20, 150))
platform -> set height -> (random(20, 150))
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008

Post » Fri Sep 05, 2014 3:19 pm

Hmm i try it right now :D
B
3
Posts: 9
Reputation: 191

Post » Sat Sep 06, 2014 12:51 pm

Let me know how it goes, I didn't try test this out myself but the code makes sense, :). You can, of course, change the figures to your liking.
Founder of Jadelight Studio, Developer of Libertas Aedifex, regular C2 Help contributor and fan of ambient music and Star Wars.
B
12
S
4
Posts: 255
Reputation: 2,008

Post » Mon Sep 08, 2014 9:30 pm

i made my own and got it working :D
B
3
Posts: 9
Reputation: 191


Return to How do I....?

Who is online

Users browsing this forum: tdcostas and 6 guests