Jump to content

How to create number count animation


syn0nym

Recommended Posts

Posted

So i want to make a animation to count a number, i have some variable to make and my problem is which function to make a counting number

values = 350000 -- Value of max count
speed = 1000 -- Speed of count

 

Posted

You can either use getTickCount() which counts milliseconds since the client/server started, or you can use setTimer to manually increment a variable until it reaches your desired value. getTickCount requires a tiny bit of basic math, but ultimately more efficient than a creating timer.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...