Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Blue72

Pages: [1]
1
Axe / Odd Text Issues
« on: May 11, 2012, 09:58:52 pm »
So I've been puzzling over a strange issues with strings and text lately, where all my efforts to print information to the home and graph screens resulted in a bunch of gobbledy-gook (long amounts of +'s, n's, and 0's). After thinking I was coding something wrong I eventually tried doing the same thing before all of the other code, resulting in perfect text. Just wondering if anyone could shed some light on this? (I'm using TokenIDE so DeltaList = Data)

Code: [Select]
.MATRIX

Fix 5

//Initial try, works fine
Text(10,10,"FFFFF")

Repeat getKey(15)
DispGraph
End

DeltaList(0->GDB1

For(Y,0,7)
For(X,0,7)
1->{Y*8+X+GDB1}
End
End

"!"->Str1

For(P,0,15)
({4*P+GDB1}*8)+({4*P+1+GDB1}*4)+({4*P+2+GDB1}*2)+{4*P+3+GDB1}->N
"F"->{Str1+P}
End

//Second try, plus trying to figure out if I used the string right
Text(10,10,"FFFFF")
Text(10,20,Str1)

Repeat getKey(15)
DispGraph
End

Fix 4

2
TI-BASIC / Text Command Erasing Pixels
« on: September 23, 2011, 05:56:39 pm »
So I've found that the Text( command spaces are excellent for erasing sprites, but on some people's calculators it seems to erase one pixel below the space as well.

The TI-Basic Developer wiki says this:

"On the TI-84+ and TI-84+ SE, the Text( command may also erase a single row of pixels underneath the text: whether this occurs or not depends on whether it was the menu screen or the table that was visited last, of the two."

This is very vague to me, and I don't understand what "the menu" refers to, since it clearly isn't the homescreen. Anyone have insight?

3
TI-BASIC / Running Line Commands from a String
« on: September 18, 2011, 10:02:15 am »
I'm writing a BASIC program that does lots of sprite drawing with lines, and I was hoping to optimize it by putting the Line( commands for each sprite into a string, and then simply using expr(String wherever the sprite was needed. Unfortunately, the expr( command seems to not work with commands that don't return answers. It would be very useful if there were another way (Or if someone had a better idea) to achieve the desired result. (I would prefer to stick with using the Line( commands)

Thanks!  ;D

EDIT: Here's a more visual explanation:

This bulky thing repeated multiple times:
Code: [Select]
Line(6X,6Y,6X,6Y+5
Line(6X,6Y+5,6X+5,6Y+5
Line(6X+5,6Y+5,6X+5,6Y
Line(6X+5,6Y,6X,6Y

Versus

At the beginning:
Code: [Select]
"Line(6X,6Y,6X,6Y+5):Line(6X,6Y+5,6X+5,6Y+5):Line(6X+5,6Y+5,6X+5,6Y):Line(6X+5,6Y,6X,6Y"->Str1And then later in the program:
Code: [Select]
expr(Str1

Pages: [1]