Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Smooth progress bar

Author
Message
Azamaticon
2
Years of Service
User Offline
Joined: 1st Oct 2021
Location:
Posted: 29th Mar 2024 22:20 Edited at: 29th Mar 2024 22:21
Hello everyone, could you tell me how to make the progress bar smooth? I am creating a fuel consumption band, but it changes in 1 second

The essence of the code is that when I press the gas pedal, the strip should decrease little by little

[video=youtube]https://youtu.be/W_TE8CHaJQI[/video]

The author of this post has marked a post as an answer.

Go to answer

ando
4
Years of Service
User Offline
Joined: 21st Feb 2020
Location: Australia
Posted: 30th Mar 2024 00:22 Edited at: 30th Mar 2024 00:25
This post has been marked by the post author as the answer.
Maybe...

Could you just make Current_fuel a float? Current_fuel#
FuelPercent is an integer and should move slowly. And play with the 0.01 value a bit.

BASIC appeared in May 1964. Lightning flashed, the wind roared and the Earth moved.
And nine months later I was born.
So here I am.
I am Basic.
Code is in my genes.
Awower
User Offline
Joined: 22nd Jan 2024
Location:
Posted: 30th Mar 2024 16:17 Edited at: 31st Mar 2024 11:26
Azamaticon, Here's a simple implementation example. Next on my own. You can improve, refine, the main thing is to understand the main essence.
APG Studio

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-05-04 18:17:15
Your offset time is: 2024-05-04 18:17:15