How do I make the firing speed of a gun slower?

0 favourites
  • 6 posts
From the Asset Store
Now Your Guns will come to life with these Sound Effects!
  • I experimented and messed up the whole game ; Now I can't even fire my gun.

    If anyone could tell me how to do that, it would be greatly appreciated.

  • You need to use a variable...

    canShoot = 0

    Then in your firing event condition add canShoot = 1 and after you shoot set canShoot = 0 followed by a wait=(how long you want) followed by set canShoot = 1.

  • Thanks again, chisinfinger

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wait, what do you meanby "firing event condition =1"?

    System: CanShoot =1 ??????????

  • Wait, what do you meanby "firing event condition =1"?

    System: CanShoot =1 ??????????

    Yes. That's what he meant.

    "The condition 'place' where your firing action is also placed."

  • Construct2 events have the following form:

    Conditions: ----------------------- Actions:

    ############################

    Condition1----------------------- Do this

    Condition2----------------------- And this

    (more conditions)------------- Etc

    -or-

    -else-

    etc

    (AND is implied)

    All Conditions must be "met"/true(unless inverted to be false or -OR- is used) before any actions in the event will activate.

    So by making a canShoot var (canShoot is made up.. you could use any name) and putting it in your firing event...

    Condition: ---------------- Action:

    ##############################

    Spacebar pressed ------ Create bullet at gun imagepoint 1

    canShoot = 1--------------canShoot=0

    ---------------------------------wait 1.5 seconds

    ---------------------------------canShoot=1

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