How do I accelerate a car to full speed

0 favourites
  • 2 posts
From the Asset Store
Have you ever dreamed of playing in a Speedball game or tournament?
  • The player in my game is a vehicle that drives similar to a car which is why I used the car behavior. I made several buttons to select different speeds. I press the button and the vehicle goes to the speed I put in the event instantly instead of accelerating to the speed. The event action ignores the acceleration speed in the properties window of the vehicle. If I use the arrow keys the vehicle accelerates properly.

    How do I tell the player vehicle to accelerate to the set speed over time with the press of a button? I tried searching for this in the forums and found things similar to my problem but not the same. I'm new here so please forgive me I'm not trying to be lazy, lol.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Set an instance variable TargetSpeed. Then if Speed < TargetSpeed, Speed = speed + Acceleration*dt

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