The_Coded wrote:
well, Since I just found out it doesn't matter if I use 5 colors or just 1 the speed is the same...either making it colourful or starting the games controls..though I need a Key number chart for that because I'm assuming it's Get Key( numbers are not exactly the same as TI's


TIAS works fairly well for most ones. You may want to check out some routines on how to do getkey right.
thanks seana Very Happy, I aim to get this game finished tomorrow or Friday!
Well I'm stuck again, I need to make "Kombat" Display in reverse on the lower characters' screen so I can make it flip around the right way after it's done..any ideas?
For 5->I to 1
Locate X,I,strmid(<your_info>)
Next
I'm still Receiving a Syntax error here


Code:

"KOMBAT"->Str 2
For 5 -> To  1
Locate I+10,2,StrMid (Str 2,I+1,I)

Code:

"KOMBAT"->Str 2
For 5 -> To  1
Locate I+10,2,StrMid (Str 2,I+1,I)
Next


You have to close off a for loop with the "Next" command Wink
there is a Next command but now it's giving me a Syntax error at the Next <- command
where is the cursor when you exit from the error? before or after the "Next"?

BTW, when debugging BASIC, it is important to check where the cursor is after an error. It is usually pretty close to the faulty section of code.
yes the cursor is right here (Denoted by a $)


Code:

"Kombat"->Str 2<-
For 5->I To 1<-
Locate I+10,2,StrMid( Str 2, I+1, I)<-
Next$<-


so yes it's right after the t in "Next"
Is the "next" command on the last line of the program, or is there more code after it?
yes the next is at the end of my lines of code Very Happy...still can't figure out the problem..here I'll put what I have to see if it conflicts anywhere.


Code:

6->J
ClrText
Locate 1,4,"--------------------"
Locate 3,1,"O"
Locate 2,2,"-I-*"
Locate 2,3,"I I"
For 1 ->A to 7
Locate 5,2,"+"
Locate 5,2,"*"   
Locate 5,2," "
Next
Locate 2,2," "
Locate 4,4,"="
Locate 5,2," "
for 1 ->A to 12
Locate J-1,2," "
Locate J,2,"*"
Locate J,2,"+"
" Mortal"->Str 1
For 0->I To 6
Locate I+10,2,StrMid(Str 1,I+1,I)
Next
Locate 17,2," "
Locate 18,5,"O"
Locate 16,6,"*-I-"
Locate 17,7,"I I"
15 ->J
For 1 ->A to 7
Locate 16,6,"+"
Locate 16,6,"*"
Locate 16,6," "
Next
Locate 20,6," "
Locate 17,6,"="
Locate 16,6," "
For 1 ->A to 12
Locate J+1,6," "
Locate J,6,"*"
Locate J,6,"+"
"Kombat"->Str 2
For 5->I To 1
Locate I+10,2,StrMid( Str 2, I+1, I)
Next
Looks like 2 of your for loops do not have a "Next" command. The reason the cursor is at the bottom is because the interpretor is trying to find the missing next command and has reached the bottom of the program. Wink
I fail to see where I am missing 2 "Next commands"..it all looks good to me, plus it runs till that very last "Kombat" String...what and why am I missing the Next for?

Code:

6->J
ClrText
Locate 1,4,"--------------------" 
Locate 3,1,"O"
Locate 2,2,"-I-*" 
Locate 2,3,"I I"
For 1 ->A to 7
Locate 5,2,"+"
Locate 5,2,"*"   
Locate 5,2," "
Next
Locate 2,2," "
Locate 4,4,"="
Locate 5,2," "
for 1 ->A to 12
Locate J-1,2," "
Locate J,2,"*"
Locate J,2,"+"
" Mortal"->Str 1
//should there be a "next" command here?
For 0->I To 6
Locate I+10,2,StrMid(Str 1,I+1,I)
Next
Locate 17,2," "
Locate 18,5,"O"
Locate 16,6,"*-I-"
Locate 17,7,"I I"
15 ->J
For 1 ->A to 7
Locate 16,6,"+"
Locate 16,6,"*"
Locate 16,6," "
Next
Locate 20,6," "
Locate 17,6,"="
Locate 16,6," "
For 1 ->A to 12
Locate J+1,6," "
Locate J,6,"*"
Locate J,6,"+"
"Kombat"->Str 2
//should there be a "next" command here?
For 5->I To 1
Locate I+10,2,StrMid( Str 2, I+1, I)
Next


I added comments where i think next should be
Well...with those commands put in it erases the top guys head...and just says "Done" so...no I am sure that those "Next" commands do not belong there
Figured it out!! I switched the

Code:

For 5->I To 1

to

Code:

For 0-> To 5


just a mix up i guess it was Very Happy so now on to the actual game!
I need some advice on what Disp I need here


Code:

Locate 5,5,"Press EXE"_     ;where _is the triangle, or Disp command


Edit: Nevermind, found id Graphing Calculator
My program is 45% complete! and weighs in at 1,036 bytes so far!..I'm expecting a 2-4kb program Very Happy all is going well and I hope that later tonight it is finished!
Good job, keeping it optimized is a good way to gain experience for other languages. I'm looking forward to see this.
Feel Free to be a Co-Author If you want to help me with making the Title come in Backwards and spin Around for the word "PRIZM"

I'll post all the code I have so far, so you can see the progress!


Code:

6->J
ClrText
Locate 1,4,"--------------------"
Locate 3,1,"O"
Locate 2,2,"-I-*"
Locate 2,3,"I I"
For 1 ->A to 7
Locate 5,2,"+"
Locate 5,2,"*"   
Locate 5,2," "
Next
Locate 2,2," "
Locate 4,4,"="
Locate 5,2," "
for 1 ->A to 12
Locate J-1,2," "
Locate J,2,"*"
Locate J,2,"+"
" Mortal"->Str 1
For 0->I To 6
Locate I+10,2,StrMid(Str 1,I+1,I)
Next
Locate 17,2," "
Locate 18,5,"O"
Locate 16,6,"*-I-"
Locate 17,7,"I I"
15 ->J
For 1 ->A to 7
Locate 16,6,"+"
Locate 16,6,"*"
Locate 16,6," "
Next
Locate 20,6," "
Locate 17,6,"="
Locate 16,6," "
For 1 ->A to 12
Locate J+1,6," "
Locate J,6,"*"
Locate J,6,"+"
" Kombat"->Str 2
For 0->I To 5
Locate I+5,6,StrMid(Str 2,I+1,1)
Next
For 1 ->A to 10
Locate 8,1," "
Locate 8,1," "
Next
ClrText
Lbl Y
Locate 7,3,"MK 9850"
Locate 5,5,"PRESS [EXE]"_    (Where _ is the triangle or disp command
ClrText
100 ->T
1 ->Z
7 ->B
5 ->M
4 ->N
7 ->O
7 ->F
For 1 ->A to 7
Locate 8,4,"READY!"
Locate 8,4,"READY!"
Locate 8,4,"      "   (6 spcs.
Next
Locate 2,1,"xxxxxxx"
Locate 14,1,"xxxxxxx"
Locate 10,1,T
Locate 1,7,"-------------------"   (21 -'s
While Z=1
Locate 10,1,"   "  (3 spcs
Locate 10,1,T
7 ->B
Locate M,4,"O"
Locate N,5,"-I-+"
Locate N,6,"I I"
Locate O,5,"*"
Locate O,5,"+"
Locate O,5,"*"
Locate O,5,"+"
Locate O,5,"*"
Locate O,5,"+"
If Getkey=26
Then O+2 ->F
Locate N,5," "
For 1 ->A to 12
Locate F,5,"*"
Locate F,5,"+"
Locate F,5,"*"
F+1 ->F
Locate F-1,5," "
F=21 =>20 ->F
Next
IfEnd
If Getkey=27
Then M=19 =>M-1 ->M
O=21 =>21 ->O
N=17 =>17 ->N
Locate N,4,"   "  (3 spcs
Locate N,5,"    " (4 spcs
Locate N,6,"    "


just copy and paste it, then delete the comments to make it work!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 2 of 3
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement