| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
Help please
im trying to figure out how to make a homemade menu where when i press right no flashes and when i press left yes flashes and when i press enter on yes it restarts the game and when i press enter on no it quits. im having trouble with getting it to keep flashing and making it continue to work. heres the code
1 sto L lbl 5 while 1 getkey sto X while X=0 getkey sto X end while L=1 for(a,0,10 output(6,3,"yes end for(a,0,10 output(6,3," " end output(6,10,"no end while L=2 for(a,0,10 output(6,10,"no end for(a,0,10 output(6,10," " end output6,3,"yes end if X=24 L-1 sto L goto 5 if X=26 L+1 sto L goto 5 if X=105 and L=1 goto 6 if X=105 and L=2 Stop if X does not equal 24 or 26 or 105 goto 5 ill take any help i can |
|
|||
|
ya im having a similiar problem in my games I dont know whats wrong.
|
|
|||
|
okay this is tough
i ran this program all it seems to do is flash yes 1 obvious problem is that you never get back to getkey because the while L=1 keeps you stuck on the flashing part try this Code:
0->L Repeat X=105 Repeat X For(A,1,6 ;Creates a delay for flash to be seen Output(6,3,"Yes Output(6,10,"No End getkey->X For(A,1,6 If L=1 Output(6,3," " ;3 spaces If L=2 Output(6,10," " ;2 spaces End End If X=24 1->L If X=26 2->L End If L=1 Goto 6 If L=2 Stop Remember: do not ever put gotos in the middle of repeat groups what happens is the calculator remembers every repeat, while, then or for you put in and counts how many ends it has to reach goto before an end means it never reaches the end the result of an goto before an end is slowing of your program and eventually it will cause a memory error |
![]() |
| Viewing: Dev Hardware Forums > SOFTWARE > TI 83/84 > Help please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|