Jump to content
Sign in to follow this  

Setting a value manual off auto on..

Recommended Posts


I am currently using a hotkey to turn off a splash screen that's in a loop.

Func _stop()
If $active = 1 Then 
$active = 0
ElseIf $active = 0 Then 
$active = 1

However using this way I have to press the key once to stop, then once again to reset the $active value back to 1. Is there a way to automatically reset the value back to one? I tried sleep and then reset but of course with a sleep it becomes more like a pause button not allowing the screen to be turned off. And I can't turn off the spash screen entirely because it's one screen over another and if I call the function off it turned the whole program off. I'm going to try right now to trick it a little and loop through the 1 value a few times giving me enough time to turn the spash screen off then resetting it.. perhaps it might work.

Any ideas would be greatly appreciated.

Share this post

Link to post
Share on other sites

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
Sign in to follow this