Skip to main content
edited tags
Link
Vaughan Hilts
  • 5.5k
  • 1
  • 34
  • 58
Tweeted twitter.com/#!/StackGameDev/status/445106794759983104
Source Link
tkn
  • 21
  • 1
  • 2

Adding touch/click event to a bitmap in android

In my android game, there is a surfaceview which has 36 bitmaps drawn on it. I want to change the bitmaps when they are touched. Is there a way implement touch or click event to the bitmaps ?

Adding touch event to surfaceview and then to calculate the bitmap touched will be very tedious since there are 36 bitmaps.