Random Spawn Location Between X Coordinates

Get help using Construct 2

Post » Thu Jul 18, 2013 4:19 am

How do I get random spawn location at X - 0 but in between the edges of my layout?

Let's say 1st random spawn is at Y 132

2nd is at Y 386

3rd is at Y 214

Thanks for the any help
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Thu Jul 18, 2013 6:43 am

random(50,100)

..for example, will return a value between 50 and 100



choose(132,386,214)

will randomly return one of the values listed.
B
28
S
8
G
1
Posts: 469
Reputation: 4,683


Return to How do I....?

Who is online

Users browsing this forum: NadeemAbbass, plinkie and 10 guests