#118326 - outphase - Mon Feb 12, 2007 5:25 am
Is there any simplified way of recognizing when a certain sprite is touched?
For example, I have a piano displayed and want to find out which key is touched at a certain time. Other than hardcoding specific coordinates, can sprites be able to recognize certain events?
pseudocode:
For example, I have a piano displayed and want to find out which key is touched at a certain time. Other than hardcoding specific coordinates, can sprites be able to recognize certain events?
pseudocode:
Code: |
if touch sprites[i] return i; |