New keyboard key usage at certain point ?

Get help using Construct 2

Post » Mon Sep 02, 2013 11:54 pm

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
B
3
Posts: 4
Reputation: 183

Post » Mon Sep 02, 2013 11:58 pm

Create a global variable..
Keyboard, on "Space" pressed
(condition if)CanShoot=yes
-------> Shoot

When you don't want him to shoot set CanShoot=no
B
45
S
15
G
73
Posts: 2,002
Reputation: 43,386


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Yahoo [Bot] and 4 guests