FuriouZ Posted January 11, 2014 Share Posted January 11, 2014 setTimer( function() guiCreateStaticImage(0.19, 0.01, 0.63, 1.00, "img/level/levelUP.png", true) end, 10000, 0) How to destroy this image after 20 seconds ? Link to comment
Karuzo Posted January 11, 2014 Share Posted January 11, 2014 and it has to be 20000 and not 10000 ^^ Link to comment
.:HyPeX:. Posted January 11, 2014 Share Posted January 11, 2014 or just .. local image = .. gui image creation .. local timer = setTimer(function() guiSetVisible(image, false) -- False to hide, true to show end, 20000, 1) Note: i belive you need to define this type of timers to work. (with function) Link to comment
Gallardo9944 Posted January 11, 2014 Share Posted January 11, 2014 image = guiCreateStaticImage(0.19, 0.01, 0.63, 1.00, "img/level/levelUP.png", true) timer = setTimer(guiSetVisible,20000,1,image,false) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now