How do I limit attack to one enemy?

0 favourites
  • 3 posts
From the Asset Store
Moles Attack game assets for 2D whack a mole smash and hit action fun game.
  • Hi,

    I want to do so that the player can only do damage to one enemy at a time. In order to take attack on an enemy I want the player to mouse left click on the enemy.

    I have accomplished that when the player mouse left click on an enemy the enemy will be targeted and take damage from the player, but right now it is possible for the player to just continue mouse left clicking on more enemies and these enemies will simultaneously also take damage from the player.

    Simply put, how could I limit attack to one enemy at a time?

  • How does the design of the game work exactly? Do you mean you click an enemy and it becomes a target and will remain targeted until you click another ? Do you mean you click an enemy once to deal damage but you are having a problem with overlapping enemies ? It's difficult to click more than one at the same time.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi lionz,

    Yes, when clicking on an enemy I want it to be targeted until I click on another enemy and instead want that one to be the only enemy targeted. Anyway, problem has been solved already.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)