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
46
S
16
G
78
Posts: 2,168
Reputation: 46,353


Return to How do I....?

Who is online

Users browsing this forum: beohs, Elliott and 13 guests