Ti_Basic_Tutorials

Sprite Control Basic

Apr 30th, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Repeat 0
  2. Repeat Ans
  3. getKey->K
  4. End
  5.  
  6. //M will be the movement variable.
  7. //This will move up and down only, but will give a basic sense of control
  8.  
  9. M+(K=34)-(K=26)->M
  10. //34=The getKey value for a down arrow.
  11. //26=Getkey for an up arrow.
  12. Text(M,5,"<
  13. End
  14. //////////////////////////////////
  15. //Try this program out, it will move a Less than sign up and down the //screen, IF you go to far to the top, or the bottom of the screen,
  16. //there will be an error, because you are drawing off the screen
  17. //also your column will eventually be filled with black
  18. //The next program will solve both of these problems
  19. //////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment