Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timer Problems
#11
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)

[Image: 11895-r.png]
Reply
#12
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
Reply
#13
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)

[Image: 11895-r.png]
Reply
#14
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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)