How do I fix this spread??!!

Get help using Construct 2

Post » Sun Jun 15, 2014 7:06 am

Hello guys I was simply testing some Metal slug style mechanics when I found this problem I cant solve, is driving me crazy.

I need the weapon to shoot the bullet with a spread effect. To achieve that i told C2 to:
> set bullet angle of motion to > gun angle +random(-5,5).

When the gun angle is 0 it works prefectly in any other direction i shoots straight with no spread :evil:

Here is a capx: https://www.copy.com/s/QhVnW3oQd7cr/Spread%20fail.capx

Hope someone finds the problem.
B
10
S
4
Posts: 133
Reputation: 1,543

Post » Sun Jun 15, 2014 9:35 am

For some reason it was to do with the "set angle of motion" action. I used "set angle" (in the angle subsection of the object) and it worked perfectly.
Spread fail.capx
You do not have the required permissions to view the files attached to this post.
B
42
S
14
G
3
Posts: 165
Reputation: 5,115

Post » Mon Jun 16, 2014 1:13 am

@Sumyjkl thanks to you I found the problem. I had to set "Set Angle" to NO in the bullet properties.
B
10
S
4
Posts: 133
Reputation: 1,543


Return to How do I....?

Who is online

Users browsing this forum: jkmalau, MoscowModder, terence951, vegapomme27 and 9 guests