0
votes

I am developing a game using andengine.. I want to detect collision between two different object in same image.. Attached dummy image

enter image description here

Image used: bus.png and dont want to use seperate image for coin. Placed both in same image(bus & coin)

Player will run on top of bus . Need to check whether player hits this coin image or not. ? Its any way to detect collision of coin within same image ?

1

1 Answers

0
votes

You can place transparent image as dummy image to coins and then check for collision with player. If you Implement physics bodies check at contact listener