0 Members and 4 Guests are viewing this topic.
which part does it throw errors?EDIT: maybe G is 45 BEFORE the loops starts. to prevent that, add DelVarG before Repeat G.
Did you try the matrix-based version I sent you? Or do you just want to do a string-based mapper?
Quote from: TBO_Yeong on February 18, 2012, 12:33:09 pmwhich part does it throw errors?EDIT: maybe G is 45 BEFORE the loops starts. to prevent that, add DelVarG before Repeat G.Repeat loops always go through once no matter what, so that shouldn't be the problem.
"0ANYTHING000000 //Take out the newlines, of course, so the interpreter doesn't freak out0 00 00 :) 000WORKS!!!1!100 ->Str1 //You can make the map bigger for more space to moveClrHome2->X2->YOutput(1,1,Str1Repeat G=45Repeat Ggetkey->GEndOutput(X,Y," Y-(G=24 and sub(Str1,16X-17+Y,1) = "_")+(G=26 and sub(Str1,16X-15+Y,1) = "_->YX-(G=25 and sub(Str1,16X-32+Y,1) ="_")+(G=34 and sub(Str1,16X+Y+1,1) = "_->XOutput(X,Y,"@EndClrHomeStop
chattahippie got his sub( argument mixed up
getting rusty on my TIBASIC
Quote from: chattahippie on February 18, 2012, 12:43:34 pmgetting rusty on my TIBASICThat's why I practice TI-BASIC * TBO_Yeong is rusty on his Axe.
IT WORKS! Thanks so much! any way to make it so it tests certain 'tiles' ?
"0ANYTHING000000 //Take out the newlines, of course, so the interpreter doesn't freak out0 00 00 :) 000WORKS!!!1!100 ->Str1 //You can make the map bigger for more space to moveClrHome2->X2->YOutput(1,1,Str1Repeat G=45Repeat Ggetkey->GEndOutput(X,Y," Y-(G=24 and sub(Str1,16X-17+Y,1) = "_")+(G=26 and sub(Str1,16X-15+Y,1) = "_->YX-(G=25 and sub(Str1,16X-32+Y,1) ="_")+(G=34 and sub(Str1,16X+Y,1) = "_->XOutput(X,Y,"@"example for eventIf sub(Str1,16X-32+Y,1)="EThen"Event stuff here"EndEndClrHomeStop