Stevenn Posted June 4, 2012 Share Posted June 4, 2012 Hello, I got this dxmsg which disappears in 5 seconds, but I want it to fade out not just remove it instantly, if you get what I mean and my question is, how can I do that? Link to comment
X-SHADOW Posted June 4, 2012 Share Posted June 4, 2012 This is an Example function drawImage() local screenWidth, screenHeight = guiGetScreenSize() image1 = guiCreateStaticImage(screenWidth/2, screenHeight/40,100,100, 'images/one.png', false) Animation.createAndPlay(image1, Animation.presets.guiFadeIn(800)) --- this is what you want? Animation.createAndPlay(image1, Animation.presets.guiPulse(1000)) --- this is what you want? end addEventHandler ( "onClientResourceStart", root, drawImage) and then use arc_ animation script and it well work Link to comment
Anderl Posted June 4, 2012 Share Posted June 4, 2012 You can't use arc_ animation library with DX Text. You must create your own DX Text system and edit the library to work with your DX Text system. Link to comment
Guest Guest4401 Posted June 4, 2012 Share Posted June 4, 2012 Or use a little bit of Math with the color argument for dxDrawText. Remember, tocolor(r,g,b,ALPHA) Depends on what is easier for you. Yes, there are other ways too, as suggested by others. 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