Hey guys,
I'm creating a first person shooter, which resembles of Time Crisis, so it's a stationary enviroment in which enemies will come out of obstacles remaining invisible until so.
Here's the real thing:
I have set a sprite into the background so that I can catch missed shots, and therefore subtract a bullet from the gun magazine.
It works Ok, but when I hit on an enemy or on my Reload button, it also detects that I've hit on the background and therefore subtract an extra bullet.
Is there any way I could avoid this?
What I'm doing is the following:
Touch - On enemy touched -> Destroy it, subtract a bullet, etc.
Touch - On backgroundUsedForMissedShots touched -> subtract a bullet.
Touch - On ReloadButton touched -> set player.bullets to maxBullets.
So basically, I only want to run an action depending on where I have touched, but as I've said, if I hit on the Reload button, it counts as if I've shot, as it sets my bullets to 11.