How do I use an Damage Bonus for X second?

From the Asset Store
This sound pack features 117 game sounds : Axe,Punch Swing & Hit & Damage. This is a perfect collection for your game.
  • Hello there, i m a Beginer Game Developer, i m still learning this beautiful program such Construct 2, i have a question, basically i m making a game and i need help to how i can use during my gameplay an object like a Damage Bonus for only 10 second and let me use my shotgun with illimitated ammo.

    i already created a variable to make it once Damage Bonus | On collision with Player | add 9 to ShotGunAmmo

    and is working (work like a reload ammo)

    i would like to change by illimitated ammo using with 10 seconds.

    thanks for ur kindness

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On picking up the damage bonus, you start a timer for 10 seconds and set a global variable to true. At the end of the 10 seconds you set this variable to false.

    On the logic for your shotgun use where its taking 1 from the ammo, you add a separate condition, if the global variable is true then don't do subtract 1 (don't do anything).

  • On picking up the damage bonus, you start a timer for 10 seconds and set a global variable to true. At the end of the 10 seconds you set this variable to false.

    On the logic for your shotgun use where its taking 1 from the ammo, you add a separate condition, if the global variable is true then don't do subtract 1 (don't do anything).

    Thanks for your reply, i tryed your logic but it didnt work for me, so at end i end up with another solution, i created a global variable Timer 10 sec and i subtract 1 from timer variable and set abletoshot to 0

    AND IT WOOOORK

    thanks again, i love this program because there is always a way to do something just need to open my mind to make it logic.

    thanks again

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