Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bug in fbc .12b! :(
#1
multiple sleep's don't work.
Code:
print "press 2 keys."
sleep
sleep
end 0
it will exit after only 1 key is pressed. Sad :evil:
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#2
heh heh... just like qb! :lol:
Jumping Jahoolipers!
Reply
#3
huh? you have to press 2 keys in qb.
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#4
it will if you press an extended key. Wink
Jumping Jahoolipers!
Reply
#5
i'm not.
and it doesn't matter if there's 2 or more sleeps.
Code:
do:sleep:print i:i+=1:loop
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#6
It's expected behaviour. SLEEP waits for a keypress but doesn't clear the keyboard buffer as it previously did; you have to explicitely clean it up afterwards:
Code:
SLEEP
WHILE INKEY$ <> "": WEND
ngelo Mottola - EC++
Reply
#7
or

Code:
Print "Hi!"
SLEEP
dmy$ = INKEY$
SLEEP
end
Reply
#8
hrm... then it's kinda pointless to SLEEP without an arg, isn't it? While Inkey$ = "": Wend works just the same...
Reply
#9
But with sleep you type less Tongue
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#10
ok, but won't that break qb-compatibility?
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)