How do I quickscope

Get help using Construct 2

Post » Sun May 24, 2015 10:08 pm

I want one of the guns in my top-down shooter to have bullet spread. I know how to set the angle of the bullets to random(Within 30,60 degrees), but I'd like it to set these angles relative to where the gun is pointed at. Because at the moment it doesn't matter where the player is aiming, the bullets are travelling toward the bottom right of the screen.


Image
What I'm trying to say is that I'd like the bullets to spread within a kind of cone on the front of the player like here.
B
3
Posts: 4
Reputation: 183

Post » Sun May 24, 2015 10:33 pm

Set your bullet angle to

player.angle+random(-15,15)

Tweak the numbers for desired effect.
B
61
S
22
G
10
Posts: 647
Reputation: 10,453

Post » Sun May 24, 2015 10:37 pm

That's awesome thanks!
B
3
Posts: 4
Reputation: 183


Return to How do I....?

Who is online

Users browsing this forum: GrogIsGood, kainrazial and 4 guests