Computer Science Canada Help please with text |
Author: | Kingnoz [ Fri May 23, 2003 3:58 pm ] | ||
Post subject: | Help please with text | ||
The code is included below. the problem im having is that the put statements im using for when u lose a life will show up on the screen for a split second then disappear. the game then continues. my question is how can i make it so that the text will stay up longer than that split second so that people playing will actually know how many lives they have. i commented out the lines of code for the titlepage so u don't need the pic
|
Author: | Tony [ Fri May 23, 2003 4:21 pm ] |
Post subject: | |
because of the game structure, I think it would work best if you'll put a delay right after displaying the message. put "you have whatever lifes left" delay(1000) ... This will also provide a pause to "prepare" to restart the game with another life. |
Author: | Kingnoz [ Fri May 23, 2003 4:37 pm ] |
Post subject: | |
i tried the delay after the lives left statement but what happens is it delays the time before the lives statement shows up |
Author: | Tony [ Fri May 23, 2003 7:22 pm ] | ||
Post subject: | |||
well your screen mode is still in "offscreenonly" mod, so you have to call a View.Update right before the delay
|
Author: | Kingnoz [ Fri May 23, 2003 8:13 pm ] | ||
Post subject: | |||
i fixed it up a bit with help from my dad and it seems to work pretty good. i tried another method What do u think?
|
Author: | Tony [ Fri May 23, 2003 11:46 pm ] | ||
Post subject: | |||
I think you should take a look at our more advanced textDelay procedure found in source code area... the one with two colors also dont use Quote: press c then enter to continue crap. Like seriosly, you wouldn't want to do that... ether use a timer or hasch instead.
|
Author: | Martin [ Sat May 24, 2003 1:24 am ] |
Post subject: | |
Lol, I wish my parents could program. I think my parents think that turing is some kind of gourmet food. |