Fire one bullet at a time on keydown

Get help using Construct 2

Post » Sun Feb 17, 2013 4:49 pm

[QUOTE=silkc2]

* NOT Bullet on-screen
* Spacebar down
= Spawn Bullet


Nothing happens.[/QUOTE]

Did you destroy all bullets outside layout first - before the Bullet NOT on Screen Condition? (Specifically you want to destroy the bullet sprite stored offscreen) otherwise Bullet NOT on screen will always return TRUE
B
9
S
4
G
4
Posts: 6
Reputation: 3,518

Post » Sun Feb 17, 2013 5:25 pm

Bullet behaviour should cause them to destroy outside layout, and I'm not sure when behaviours are triggered.

According to a dev it's always returning false, because there are no instances of a bullet for the engine to check the rule against in the first place.

Anyway it just doesn't work this way, so I can use the else or I can use bullet count.
B
20
S
6
G
2
Posts: 157
Reputation: 3,109

Post » Mon Feb 18, 2013 5:48 am

try

(event)on key down -> (Action) spawn "bullet" at "object" point "0"
------------------------------------------------
(condition) Every X seconds

X will be the time between each bullet.
B
8
S
3
G
3
Posts: 39
Reputation: 2,560

Previous

Return to How do I....?

Who is online

Users browsing this forum: Colorfish, Waltuo and 4 guests