Speed increases as you move?

0 favourites
  • 4 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • I'm going to try to make a mario game. And I was wondering if there was a way to make the speed slowly rise from walking speed to running speed. And when he hits the running speed, the animation changes to his running animation.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When using the "Platform" behavior on your player, you can set the acceleration as a parameter on the player object, with which you can make your slow rise from walk to run.

    Then you can on the object compare the speed and set it to your running animation when it has reached a certain point.

    something like this: .capx

  • Your speed needs to be a variable lets call it SpeedA

    Youd also want a base speed variable lets call it SpeedB

    --                                                --

    IF speed A <= speed limit

    Every 0.1 Seconds (could also use tick, etc)

    Key is down           set speedA too speedA + 10

    --                                                --

    On key Released       set speedA to speedB

  • How would I do a Brake animation? Like when I'm running and I hold the opposite key down. I'm running right, I press the left key, and the brake animation plays until he stops.

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