DiligentPyrus's Recent Forum Activity

  • Thank you for your suggestion. It didn't end up working but I did find the solution after some more tinkering!

    I grouped lines 12 and 13 separately from line 11. I still checked to see if "EnemyTurn" was true and used the "System: Trigger Once" condition again. I also found that the order you place the "System: Trigger Once" condition is important: the loop kept breaking when it was above "Game...:Is EnemyTurn", but then worked fine once it was below it.

    Anyways, thank you again for the suggestion!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi so I'm trying to make a pokemon style game with turn-based combat. Line 11 checks to see if an instance variable "EnemyTurn" is true, and if so then line 12 will apply damage to the Player ONCE while "EnemyTurn" is true, and line 13 will set "EnemyTurn" to false if the Player's HP is greater than 0.

    The PROBLEM is that, occasionally, the damage will be applied around 4-6 times in a second even though it should only be applied once. Somehow the "EnemyTurn" variable is being set to true multiple times in a second? Please help not sure what I'm doing wrong.

DiligentPyrus's avatar

DiligentPyrus

Member since 4 May, 2021

None one is following DiligentPyrus yet!

Trophy Case

  • 3-Year Club
  • Email Verified

Progress

4/44
How to earn trophies