How do I do shotgun bullet spread for turret

Get help using Construct 2

Post » Tue Aug 11, 2015 11:01 am

Message: HuaHero can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hi guys,

I have been using construct 2 for a while now. I'm trying to create a bullet hell game and have encountered into a little issue which i can't seem to solve.

I'm trying to create an turret enemy type that does shotgun spread kind of shots. But i do not seem to be able to implement it together with the turret behavior.

I could do it while firing as a player but not on a turret behavior.

I have attached the cap file and could someone help me?

Btw is there a bulletML version for construct 2? I can't seem to make it work with the current version of bulletML.

http://we.tl/eursBLU0U5
B
11
S
2
Posts: 61
Reputation: 704

Post » Tue Aug 11, 2015 11:41 am

Turret | On Shot: -
|_ Repeat 10 Times : Turret | Spawn another Object : Bullet
------------------------------ Bullet | Set angle of motion : random(Turret.Angle+20,Turret.Angle-20)

Should work.
Hope I helped you. :)
B
8
S
1
Posts: 41
Reputation: 550

Post » Tue Aug 11, 2015 12:39 pm

Message: HuaHero can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
@LINE000

Thanks for the advice, i have tried but it still doesn't work. I have attached the capx file as below

Image

http://we.tl/fQHF9smnwJ
B
11
S
2
Posts: 61
Reputation: 704

Post » Tue Aug 11, 2015 1:24 pm

Select Sprite 3 and look at the left side of the Bullet Behavior. There is an option called "Set angle", set it to No.
If this option has been set to yes, the spawned sprites will take over the angle of the turret.

Image
It's time for me to return the favor :)
B
32
S
9
G
9
Posts: 132
Reputation: 5,370

Post » Tue Aug 11, 2015 1:36 pm

@ikke2902

Oh thanks a lot for your help!

Thanks both @ikke2902 and @LINE000

Now i can carry on with my game development :D
B
11
S
2
Posts: 61
Reputation: 704


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi and 18 guests