Okay, I must be the biggest noob in existence because I've checked this forum and the Troubleshooting forum and NO ONE has ever asked a question about how to use timers in Gamedev. So, I guess I'll start.
What I need is the basic script to create a timer in Gamedev script, basically so I can do things such as have functions fire after a certain period of time. For instance, having the player switch to an 'invicible' sprite when hit, then switch back to the normal sprite after say, 2 seconds.
I've looked at sample code using timers and I'm just confused as to what is going on here. So, if somebody could just post how to create a basic timer here, I'd be very appreciative.