Posts: 2,404
Threads: 153
Joined: Jan 2005
Quote:there is still a problem now the screen redraws 15 times in 1 sec then goes at the exceted speed
Question: What are you using, or intending to use, the loop on?
If it's to keep motion across the screen constant, I'd suggest a way differnt delay.... But the
1 min 30 sec makes me think it's to pause before starting a game, or something else.... Which is it? or if it's anything else, do state so we can better help you.... :wink:
Kevin (
x.t.r.GRAPHICS)
Posts: 21
Threads: 4
Joined: Aug 2004
basically, its for a tamigotachi game the delay is while it waits for an inpt but if nothing is typed/pressed after 1min 30 secs then i want the animal to age by a day
Posts: 2,404
Threads: 153
Joined: Jan 2005
Why not have the program run constantly and count up the age every 1min30secs ? The way your talking about sounds as if it will up the age every time you press a key.... :roll:
Code:
T! = TIMER
DO
IF (TIMER - T!) >= 90 THEN Age = Age + 1: T! = TIMER
LOOP UNTIL INKEY$ = CHR$(27)
?[/code]
Kevin (
x.t.r.GRAPHICS)
Posts: 21
Threads: 4
Joined: Aug 2004
no if a key is pressed the timer is reset to zero and a menu is brought up, after the user has finished then the counter starts again (and the animal ages by a day)