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

0 favourites
  • 14 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • How to make this type of mini game

    link of above pic

    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?

  • Bump

  • 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

    but currently i am also asking about

    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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

    thanks for your lerp explanation

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

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

    Hi gumshoe2029

    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.

    please do some help and make it clean please

  • I have no idea what you are trying to build here, so I cannot really improve on it without that.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)