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.

Author
Message
Mugen Wizardry
User Banned
Posted: 11th Jan 2011 20:42
Hi all. I'm making a count down code. I can get it to coundown just fine. But I can't get it to reset to it's original start value once it reaches the end of the count down.

Can someone please help me?



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Mugen Wizardry
User Banned
Posted: 11th Jan 2011 21:04
NVM found a code.

thx anyway

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Mugen Wizardry
User Banned
Posted: 11th Jan 2011 21:24
Actually, can someone help me combine this code please?

I need to make it so that when CTVal = maxtime, reset CTVal to maxtime then fadeout the sprite.

After EVERY 5 minutes, i need it to fade in a sprite saying "Like this? Then click here to go to the website". then fade out after 2 minutes of being displayed



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 11th Jan 2011 23:41
Quote: "I need to make it so that when CTVal = maxtime, reset CTVal to maxtime then fadeout the sprite."


What??? So if I understand this... When CTVal = maxtime, reset it to the same value, then fadeout the sprite. You know you could just use the original I code for this right. Just set the startTime of the fade to whatever maxtime is (3). Then run through the LinearInterpolation func only if spriteElasped# < (endTime#). Then do what ever afterwards. If you need a countdown timer, just dec a variable with '_delta'.

A dream is a fantasy, if you achieve that fantasy it was never a dream to begin with.

Login to post a reply

Server time is: 2026-07-21 15:13:44
Your offset time is: 2026-07-21 15:13:44