Trigger once with more than one other condtion

  • Okk, I hope I can explain well as I can't upload a capx file for now!

    In my game there are friends an enemies. Player is penelised (reduce his score) when friends are attacked (double clickj). However when friend are attacked they are not destroyed like the enemies, so the player can click the same friend twice and get penalised twoce. I don't want this. I only want to penaluse the player once. How can I achielve this.

    Couldn't use the trigger once cos I had like 3 condtions to test to determine friend and thwn couldn't aDd trigger once to the condition again. Help would be apprecited

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use an instance variable on the friends, a boolean will work fine. Set it to false initially, and whenever player attacks friend, compare if that boolean is set (=TRUE). If so, ignore the penalty, if not (=FALSE), reduce the score and set the boolean to TRUE.

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