Spuds1411's Forum Posts

  • 2 posts
  • Hi. It's working exactly as you programmed it to, the only issue is that it's not meeting your expectations. But enough philosophizing.

    You can implement firing rate timing in different ways, I usually prefer to make it dynamically dependent on the variable, so that you can realize the improvement of firing rate in the game.

    In your case it is enough just to reset the timer every second.

    Thanks for your reply! unfortunately, the solution you posted does not work. as it just resets the cooldown every second, if you time your attack correctly, you can attack and it will instantly remove the cooldown allowing you to attack twice incredibly quickly. this makes the attack cooldown incredibly inconsistent. id like for it to take exactly 1 second from the frame that the player left clicks on, for the attack cooldown to reset.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have these two conditions here that im trying to use to make an attack cooldown. but for some reason this just refuses to work properly. when "CanAttack" is true, i left click and it sets "CanAttack" to False. then after a second, it sets it back to true. this much works, but, for some strange reason, as soon as it sets "CanAttack" back to true, theres roughly a whole second where i can spam left click and it never sets "CanAttack" back to false, allowing the player to spam attack and i just have no clue why it wont work at all. any help?

  • 2 posts