Re: TIB: Help with Sprites


[Prev][Next][Index][Thread]

Re: TIB: Help with Sprites




Here's what I use:

lbl t
Getky -> x
if x==0 
goto t

if x==22
goto exit

if x==23
goto other

goto t

So, you can make it fulfill a lot of commands this way. If someone has a
better way, please tell me.





-- 
o w e n  c a n n o n
ocannon@oregonvos.net
www.oregonvos.net/~ocannon


> From: CalenWakefield@aol.com
> Reply-To: ti-basic@lists.ticalc.org
> Date: Sun, 30 Jan 2000 16:34:31 EST
> To: ti-basic@lists.ticalc.org
> Subject: Re: TIB: Help with Sprites
> 
> 
> My next question is this: How do you use getkey() for multiple commands.
> Such as this:
> 
> Loop
> While getkey()=(a number)
> (have it do what ever)
> While getkey()=(a different number)
> (have it do something else)
> Endwhile
> Endwhile
> Endloop
> 
> I do something like that, it is the only way I know of to use getkey()
> commands, but sometimes when the corresponding key is pressed it will not do
> what it is supposed to do because it will be on the other  "while" statement.
> Do you know what I am doing wrong or if there is a different way to use
> getkey()? 
> By the way I am talking about an 89 still
> 
> 
> Thanks for 
> your help
> 
> 
> 



Follow-Ups: References: