How do I fix my cooldown system?

0 favourites
  • 8 posts
From the Asset Store
Create complex dialogues with ease with this tool/template!
  • Can someone explain to me why my cooldown system doesn't work and how I can fix it

  • The second event stacks while its waiting because it's running every tick. I think add a trigger once ? Or probably a better option is to put those actions in the first event - subtract 1, wait 3 seconds, add 1.

  • I made it so it all happens in one event but whenever I test it it always shoots nonstop so the cooldown didn't work the only thing that can stop the gun is just making the local number 0 but that part makes sense

  • Don't use the wait action. Use the timer behavior instead.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I made it so it all happens in one event but whenever I test it it always shoots nonstop so the cooldown didn't work the only thing that can stop the gun is just making the local number 0 but that part makes sense

    It should work fine, did you put the subtract after the wait ? When you press the key it locks out straight away by changing the variable so you shouldn't be able to spam it.

  • Actually it wasn't that it was the wait feature or timer it was just one thing it was the fact that the cooldown system used a local number and it started working as intended after it was switched to a global number. Weird

  • To makes the local variable works as intended a 'static' option should be checked beforehand.

  • Actually it wasn't that it was the wait feature or timer it was just one thing it was the fact that the cooldown system used a local number and it started working as intended after it was switched to a global number. Weird

    I don't see how that's correct, if you use a global variable instead it would still be broken in the same way. But to be honest you never mentioned how it was broken in the original post.

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