[Solved] How do I... Choose from 2 set values

Get help using Construct 2

Post » Sat Aug 31, 2013 4:31 am

Every 3 seconds I spawn a bullet. I either want that bullet to have a gravity of -90 or 90. Nothing else. How would I do this?


System - Every 3 seconds : sprObj | Set Bullet Gravity to random(-90,90)

That is very close, but I need the return value to be *only* one of those two, not any value in between.GrimPanda2013-08-31 05:54:55
B
13
S
3
G
2
Posts: 11
Reputation: 1,361

Post » Sat Aug 31, 2013 4:41 am

choose(90,-90)
Image
B
242
S
29
G
13
Posts: 1,787
Reputation: 18,685

Post » Sat Aug 31, 2013 5:54 am

Brilliant! Thank you so much!
B
13
S
3
G
2
Posts: 11
Reputation: 1,361


Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, Google [Bot] and 9 guests