0 Favourites

# [SOLVED] How do I make this type of mini run game

• 14 posts
• How to make this type of mini game

What I can do here

Run Animation Speed Score Obstacle moving

What I can't do

invert screen increase speed smoothly random obstacles, distance birds position up, down, mid randomly

I could make random obstacles but difficulties comes when their is matter about distance between their.

I can do increase speed but i can't do smooth speed

when score is greater then 100 then set speed 200 from 100

this increases instant speed

• Maybe try using a linear equation to set the speed?

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• Did you try using a linear equation? You keep bumping this without actually trying to solve it yourself, it seems.

• Did you try using a linear equation? You keep bumping this without actually trying to solve it yourself, it seems.

actually I don't know about linear equation, I am just googling about linear equation and trying it

invert screen

random obstacles, distance

birds position up, down, mid randomly

• how to use lerp expression ?? pls explain how lerp works ?

I only know lerp(a,b,x) but don't know their behavior or how they works

• Lerp creates a linear extrapolation between two given points; and, based on a percentage of the way between them, returns a value.

For example, if you have lerp(0,1,0.5) will return 0.5.

This is equivalent to using the linear equation: y =x

Because 0.5 is 50% of the way between 0 and 1.

Similarly, lerp(0,2,0.5) will return 1.

This is equivalent to using the linear equation: y = 2x

Because 1 is 50% of the way between 0 and 2.

Similarly, if you do lerp(0,1,0.3), you will get 0.3, and lerp(0,2,0.3) will return 0.6.

The lerp function does linear extrapolation for you, and thus would fill your role for a linear speed modifier well enough.

• ohkkkkk

thanks for this information, its helpfull

I was always confused with the third number x

lerp(a,b,x)

example: my current speed is 200

i want to increase 50 every 10 second

i was doing

lerp(200, 50,10)

infect i have try many numbers with 10

• Now I can do

1) increase speed smoothly

2) random obstacles, distance

3) birds position up, down, mid randomly

but

4) invert screen is still pending , how to do it

• To increase speed smoothly, you just change the x value in the lerp function between 0.0 and 1.0 by maybe 0.01 every tick or so.

You lerp needs to work like this:

lerp(200,2000,x) (2000 is just an example, but whatever the 'max' speed is)

I am not sure what you mean by random obstacles. There are one million different ways you can go with that.

Bird position you can randomize by using random(a) for the y-position. You can even use sine movement to make them go up and down some.

I am not sure that there is an easy way to invert the screen.

• Now i have made all these things

invert screen

increase speed smoothly

random obstacles, distance

birds position up, down, mid randomly

• Cool. Good luck, share your screen inversion technique.

• Cool. Good luck, share your screen inversion technique.

i have done inversion

but its vague, i want it to toggle on every 100 score

my score are also not gud

when i delete object outside layout then score not updating properly

I am sharing capx here.