Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
Compare this to line 3:


Code:
[i]IMAGE // Name of file
20->X->Y // Sets X and Y to 20 (not important)
/*
New problem: it's compiling, now the repeat block's not running... I think it's the
DefineSprite turning into "minY" in the TI-BASIC editor...
*/
// Line 3 here
DefineSprite(16,16,"2222222266066066AA0AA0AA5555555590999909101111018800008844444444")->FRUIT
det(0 // Turns on graphics mode
Repeat getKey(15) // Arrow key input, stops when clear is pressed
f getKey(4) //Up
   Y+5->Y
End
If getKey(1) //Down
   Y-5->Y
End
If getKey(2) //Left
   X-5->X
End
If getKey(3) //Right
   X+5->X
End
det(57,FRUIT,X,Y // Renders FRUIT sprite
End
det(1 //Returns to normal
The problem is not ICE, the problem is that your variable is named "ORANGE". SC automatically converts that to the ORANGE token, which is a color name, which indeed isn't implemented. Smile
You can't use getKey to detect the state of the on key.
  
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 1 of 1
» All times are GMT - 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