CrazyBoss Posted January 13, 2021 Share Posted January 13, 2021 Hi. Any point function in intybasic. I read in the manual for intybasic: COL7 Returns the collision status between sprites for the current frame. It is best to use these after WAIT. Don't forget to set the interaction bit in sprites (bit 8 of X-coordinate) bit 0-7 means collision against sprite number. bit 8 means collision against background pixel (pixel set) bit 9 means collision against borders If the sprite touch a background pixel ? Quote Link to comment Share on other sites More sharing options...
carlsson Posted January 13, 2021 Share Posted January 13, 2021 COL0 - COL7 will tell you if respective sprite has hit something. Bit 0-7 for collision with another sprite, bit 8 for background. Once you have determined a collision happened, read the sprite location (probably already in a variable), convert it to screen position and read which card is at that position/positions depending on the shape of the sprite. Is that what you're looking for, a routine that converts sprite position to screen position and returns the content in the cards involved? Quote Link to comment Share on other sites More sharing options...
+nanochess Posted January 13, 2021 Share Posted January 13, 2021 Yes, the bit 8 of collision indicates a hit of a sprite pixel (set to one) versus a background pixel (set to one). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.