Dont fire when click touch a button on the screen
Guys, i creating a game where the player can shot based on the touch ( mouse click ), so when you click in any place of the screen a bullet spawn.
But i creating a system where the player can choose between different types of bullets, so i create icon's so player click on the icon and then the bullet type changes, the problem is that when the player clicks on the ICON, a new bullet spawn every time.
Is there a way to solve that, and make the player not fire when selecting a new type of bullet.
But i creating a system where the player can choose between different types of bullets, so i create icon's so player click on the icon and then the bullet type changes, the problem is that when the player clicks on the ICON, a new bullet spawn every time.
Is there a way to solve that, and make the player not fire when selecting a new type of bullet.
Answers