TI 83/84
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWARETI 83/84

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old January 7th, 2008, 04:28 PM
golbar golbar is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 1 golbar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m
Reputation Power: 0
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

Reply With Quote
  Trader Rating: 0 · #2  
Old February 1st, 2008, 04:13 PM
pwnz32 pwnz32 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 16 pwnz32 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 6 m 12 sec
Reputation Power: 0
ya im having a similiar problem in my games I dont know whats wrong.

Reply With Quote
  Trader Rating: 0 · #3  
Old February 2nd, 2008, 09:44 AM
attme100 attme100 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 20 attme100 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 44 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWARETI 83/84 > Help please


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT