How do I make an infinite runner game

Get help using Construct 2

Post » Thu Mar 02, 2017 10:37 pm

So look,
I had this idea about making a subway surfers like game in C2
I tried many things, like random values that choose which scene you go to

My question is:
How do I get random values and how do I round them (if neccessary)

Any help would be appreciated
Thanks!
B
11
S
3
Posts: 6
Reputation: 717

Post » Thu Mar 02, 2017 10:43 pm

int( random(lower bound, upper bound ) )
Image Image Image
B
29
S
11
G
27
Posts: 730
Reputation: 17,002

Post » Fri Mar 03, 2017 1:40 am

ALM888 wrote:So look,
I had this idea about making a subway surfers like game in C2
I tried many things, like random values that choose which scene you go to

My question is:
How do I get random values and how do I round them (if neccessary)

Any help would be appreciated
Thanks!


Start with the C2 infinite runner example included with C2.

You can use int() for rounding or floor() if you want it to round down.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Fri Mar 03, 2017 3:20 pm

ImageImage
B
105
S
46
G
23
Posts: 778
Reputation: 22,226

Post » Fri Mar 10, 2017 12:53 am

K thx everybody! Really appreaciate it
B
11
S
3
Posts: 6
Reputation: 717


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, David181, luckyrawatlucky and 2 guests