Jump to content

.


DarkByte

Recommended Posts

Hello i wonder if it's possible to draw an animated bar, like decreasing slowly to the value and stop at the needed point and increasing slowly to the needed point, if so please show an example i have no idea how to do it..

Edited by Guest
Link to comment

local width = 0

dxDrawRectangle(x,y,width,height,...)

setTimer(function()

Width = width + 1

,100,20)

Not tested, but this is the idea, you create a rectangle with the width as a var and you later change the var with a timer or onClientRender to have a smooth grow on the rectangle

Link to comment

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...