New keyboard key usage at certain point ?

  • Working on a platformer-type game, I have the character able to shoot properly using the space bar, but I want the character to not be able to do this until a certain point. Any ideas ?

    This is what I have now:

    Keyboard, on "Space" pressed:

    |

    |-------> Player, is mirrored: Player, spawn Attack on Layer 1 ( IP 1 )

    |                                 Attack, set Bullet angle of motion 180

    |

    |-------> Player, not mirrored: Player, spawn Attack on Layer 1 ( IP 1 )

                                       Attack, set Bullet angle of motion 0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Create a global variable..

    Keyboard, on "Space" pressed

    (condition if)CanShoot=yes

    -------> Shoot

    When you don't want him to shoot set CanShoot=no

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