spread bullet

Get help using Construct 2

Post » Sun Jan 22, 2012 5:30 pm

ok i need help with that one. I want that when i get the shotgun the bullet that i fire spread. 1 that stay straight and the other 2 at an angle of something like 45 and 315.

i tried to play with angle and set angle but it doesnt seem to work :S

allhttp://dl.dropbox.com/u/58024177/shooter2.capx

any help would be appreciated.

Thank you spexel2012-01-22 17:30:58
B
6
G
1
Posts: 44
Reputation: 1,220

Post » Sun Jan 22, 2012 5:40 pm

This should do the trick

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

Post » Sun Jan 22, 2012 6:18 pm

If you put the sgBullet2 action under the spawn sgBullet2 action and sgBullet3 action under the spawn sgBullet3 it should work better.

Also you should spawn only sgBullet instances and change their angle.
No need for two object types duplicates. (sgBullet2, sgBullet3)

[code]
On left click
-> Playershotgun Spawn sgBullet
-> Playershotgun Spawn sgBullet
-> sgBullet set angle player.angle - 35
-> Playershotgun Spawn sgBullet
-> sgBullet set angle player.angle + 35
[/code]
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sun Jan 22, 2012 6:37 pm

ok this work great thank you all!
B
6
G
1
Posts: 44
Reputation: 1,220

Post » Tue Aug 14, 2012 9:32 am

i was have the same problem, but i solved with this, now i have another problem, how mirror bullets? xD

thx for the answers :D
B
4
Posts: 41
Reputation: 547


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 27 guests