How to make a automatic gun??

Get help using Construct 2

Post » Sun Jan 01, 2012 3:49 pm

I am new to construct, and i need help!!!
I am creating a platformer shooter and a need a automatic weapon can anyone please help me!!
B
4
G
1
Posts: 5
Reputation: 512

Post » Sun Jan 01, 2012 3:50 pm

Automatic weapon doing what? be a little more precise please
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sun Jan 01, 2012 3:51 pm

i mean that i want a machine gun that shoot bullets!! Rapidly
B
4
G
1
Posts: 5
Reputation: 512

Post » Sun Jan 01, 2012 3:53 pm

well you can make your gun shot bullets when your keyboard button is down...
(if that`s what you need )
-every tick
-if (key) is down: spawn bullet from imagepoint (gun)

here ya go
kbdmaster2012-01-01 15:53:54
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Sun Jan 01, 2012 4:08 pm

This is not working! ^
B
4
G
1
Posts: 5
Reputation: 512

Post » Sun Jan 01, 2012 4:14 pm

Try this

CAPX
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sun Jan 01, 2012 4:51 pm

I want to fire it like a machine gun!!
B
4
G
1
Posts: 5
Reputation: 512

Post » Sun Jan 01, 2012 4:54 pm

well pal, then put a wait between the spawns. This example spawns so fast, that it looks like a line - but this are all single instances of the steel ball.
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sun Jan 01, 2012 9:50 pm

[QUOTE=Ojazz] i mean that i want a machine gun that shoot bullets!! Rapidly [/QUOTE]

well now, you'll need to be a little bit more specific. we're not here to make your game for you
but i assume you're looking for a way to spawn bullets rapidly. you don't need the every tick condition. use use "when keyboard/mouse down" and a system-->every x seconds as well. set the seconds to (0.1) and it will fire 10 rounds a second.

I'm too lazy to make my own example, so I just took Weishaupt's example (sorry ) and modified it to control the fire rate. here ya go: http://www.mediafire.com/?11rkr9ryl4vwlsi
B
29
S
5
G
6
Posts: 58
Reputation: 5,121

Post » Mon Jan 02, 2012 5:16 am

Thanks that worked!!!
A question are you the guy who made 1945 game for construct 2 on youtube???
B
4
G
1
Posts: 5
Reputation: 512

Next

Return to How do I....?

Who is online

Users browsing this forum: benajad, Braus, R0J0hound, shinkan and 26 guests