Countdown
Übersicht
BlitzBasic
Beginners-Corner|
|
JufiBetreff: Countdown |
Antworten mit Zitat |
|---|---|---|
|
wie baue ich in ein Spiel eine Zeitbegrenzung ein? wenn die zeit um ist sollte ein Game over bildschirm erscheinen!
Danke im Voraus |
||
|
|
Cardonic |
Antworten mit Zitat |
|---|---|---|
|
Zum Beispiel so:
Code: [AUSKLAPPEN] Graphics 640,480
SetBuffer BackBuffer() While Not KeyHit(1) Cls ; SPACE -> Timer auf 10 setzen If KeyHit(57) Then time = MilliSecs() + 10000 ; Verbleibende Zeit berechnen remaining = time-MilliSecs() If remaining > 0 Then Text 10,10,"Verbleibende Sekunden : "+(remaining/1000) Else Text 10,10,"GAME OVER !" EndIf Flip Wend mfg Cardonic |
||
| If you should go skating on the thin ice of modern life, dragging behind you the silent reproach of a million tear-stained eyes, don't be surprised when a crack in the ice appears under your feet. | ||
|
|
Schranz0r |
Antworten mit Zitat |
|---|---|---|
| Dazu muss man noch sagen, das du mal die Boardsuche nutzen kannst, weil das thema war letzte Woche schon mal da! | ||
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!HAUPTSACH et kost VIEL!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
||
Übersicht
BlitzBasic
Beginners-Corner
Powered by phpBB © 2001 - 2006, phpBB Group
