@MightyRy -
Quote: "Is ther nothing i can do with the timer i got?"
Could you post your code. I can't find it. Thanks
I can explain what I got a bit more though:
If your ending the game then just replace this:
If CurrentTime# <= 0
ResetTimer() ` Reset our count down
EndIf
With this:
If CurrentTime# <= 0
outoftime() ` End game
EndIf
or using Baxslash's credits function:
If CurrentTime# <= 0
credits()
EndIf
Baxslash's credits function:
function credits()
ink rgb(248,8,8),rgb(0,0,0)
x = screen width()/2
for y = 0 to 690
y1 = 1000 - y
center text x,y1,"The ....."
center text x,y1+50,"Thank you for playing"
center text x,y1+80,""
center text x,y1+120,"This game was created by"
center text x,y1+160,"......"
wait 50
cls
next y
set text size 36
center text screen width()/2,screen height()/2,"THE END"
sync
wait key `just added this line
endfunction
The code I gave you should work just fine.
This line will set current time to the start time which is 10 minutes and subtract the minutes.
CurrentTime# = StartTime# - GetMinutes() ` Subtract minutes elapsed
If you want to count down 10 seconds then use this:
CurrentTime# = StartTime# - GetSeconds() ` Subtract Seconds elapsed
If you want to count down 10 hours then use this:
CurrentTime# = StartTime# - GetHours() ` Subtract Seconds elapsed
If you want to count down 10 MiliSeconds then use this:
CurrentTime# = StartTime# - GetMiliSeconds() ` Subtract Seconds elapsed
I posted a tutorial for you to make things easier:
http://forum.thegamecreators.com/?m=forum_view&t=178927&b=1&p=0
Let me know if you need any help.
DigitalFury