Author: KermMartian
Posted: 28 Jan 2013 05:58:02 pm (GMT -5)
Yes, tons of ways! I could continue to plug my book, of course, but if you get it you'll see that I have plenty of examples of moving things around on the graphscreen. The basic premise is something like this:
Code:
_________________
![]()
![]()
![]()
![]()
![]()
![]()
Posted: 28 Jan 2013 05:58:02 pm (GMT -5)
ghest1138 wrote: |
Any idea how to do the custom input routine? (mind you, I'm using TI-BASIC) |
Code:
starting_x_coord→A
starting_y_coord→B
Repeat K=105 //Repeat this loop until the user presses [ENTER]
//Draw some cursor, for example with PtChange:
Pt-Change(A,B
Pt-Change(A,B+1
Pt-Change(A,B-1
Pt-Change(A-1,B
Pt-Change(A+1,B
// Wait for a keypress
Repeat K
getKey→K
End
//Erase the cursor, for example with PtChange:
Pt-Change(A,B
Pt-Change(A,B+1
Pt-Change(A,B-1
Pt-Change(A-1,B
Pt-Change(A+1,B
//Handle the keypress
A+ΔX((K=26)-(K=24→A
B+ΔY((K=25)-(K=34→B
End
// Final coordinate will be in (A,B)
_________________





