spawning objects when control is down

For questions about using Classic.

Post » Mon Feb 16, 2009 10:33 pm

Hi, i'm totally new to construct and trying to spawn bullets when a key is held down. problem is, it spawns a zillion bullets, one right after the other. i need a delay (which i can define) between each shot, but haven't found a way to accomplish that.
I have a feeling it's something really simple, help?
B
1
G
3
Posts: 5
Reputation: 835

Post » Mon Feb 16, 2009 10:35 pm

The easiest way would be to add an "Every X Milliseconds" condition, which can be found under the system object.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Mon Feb 16, 2009 11:03 pm

Yeah just add an additional condition like:
on mouse button down
every x miliseconds
>spawn object bullet.
Just make sure its all in the same event.
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Mon Feb 16, 2009 11:04 pm

yes, that did it, thanks very much.
B
1
G
3
Posts: 5
Reputation: 835


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests