help please

0 favourites
  • 4 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • hey guys ive got a problem which i cant wrap my mind around basically the scenario is that i want to spawn several creatures and then they match towards a wall once they reach the wall they start attacking but i don't know how to make them all attack and take health away based on them all attacking. i have nothing to show you at the moment apologies.

    Thank you for any help given

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey Dark,

    Try and think about the interactions like the way a light switch works. You can add variables to your 'soldier objects' to check the current state and based off that variable give each soldier commands to follow.

    Is the soldier touching wall already? No? Then turn on the switch to make them march.

    Is the soldier touching the wall? Yes? Then turn on the switch to make them stop marching and attack.

    Is the soldier attacking? Yes? then subtract 1 from the wall's life total once per attack animation.

    I know its pretty general, hope it helps.

  • that's great tyvm. couldn't figure it out at all

  • hmm i got another query got them attacking but when multiple creatures are attacking wall it only takes away 1 health instead of each individual creature

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