[Behavior] jj_Weapon

Post your completed addons to share with the community

Post » Wed Dec 07, 2011 4:20 pm

This does not work with construct 2 r70
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Wed Dec 07, 2011 6:34 pm

Nevermind I got it working :) was being silly, allthough how do i set what to use as a bullet?
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sun Dec 11, 2011 3:16 am

@smitchell, you must create a "Set bullet instance" action in the events sheet for you object with jjweapon behavior and select a bullet.
B
4
S
1
G
1
Posts: 36
Reputation: 949

Post » Sun Dec 11, 2011 4:41 pm

Yeah i figured it out thanks :)
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Wed Jan 11, 2012 3:38 pm

very nice behavior
can i set it up to shot with left click?
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Sun Jan 15, 2012 2:59 pm

Peteer, you can use Mouse.click event from events-sheet and set Weapon.Shoot action
B
4
S
1
G
1
Posts: 36
Reputation: 949

Post » Thu Jan 26, 2012 10:06 am

Thx,
ill try it
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Tue Jan 31, 2012 12:20 pm

It`s working thx.
Any idea how can i count the bullets fired from a jj_Weapon?
I use mouse button for firing (mouse->left mouse button is down).
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Tue Jan 31, 2012 12:44 pm

never mind...I got it :D
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Thu Mar 29, 2012 11:28 pm

awesome plugin!

one "problem" though; i want the bullets to fire at an angle of weapon.angle + random(X,-X)degrees from the weapon but if the weapon changes its angle while firing, so will the bullets mid-flight =(

anyway to get around that or like add a "spread" variable to the weapon?

thanks!

EDIT:
think i fixed it, changed from "set angle" to "set bullet angle of motion to bullet.angle + random(10, -10) degreesopenfocus2012-03-29 23:35:48
B
7
Posts: 25
Reputation: 965

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest