I have an image of diretional buttons wich I want to use to control the hero in the game.
The image is a png file with transparency, with 4 arrow buttons (up, down, left, right).
If I create the image and make an eventlistener for when the image is pressed, can I handle the tap coordinates to discover wich arrow button (i.e. what section of the image) was pressed?
Or I have to separate the image in 4 diferent images (4 arrow buttons), posicionate them correctly and create each eventlistener individually?
If it is actually possible to handle the image as a whole and discover what section was pressed, how to do that?
Help me.
Thanks!