Hello im trying to make a platformer game were you have a gun and you point the gun with your mouse but im trying to make a shotgun but as you can see i ahve different angles in code:
but the bullets just go straight pls help
Develop games in your browser. Powerful, performant & highly capable.
You want to set the bullet angle of motion to guns.angle+random(-6,6) etc.
yours
winkr7
oh yeah i realised that i just controll with my mouse the angle and the angled of it comes out lol thank you so much
It didnt work
how do i insert my capx here
Sometimes it can be the simple things. For the bullet behavior in the bullet properties is the "set angle" parameter set to True? If not then it should be.
I will try
YAY IT ACTUALLY WORKED THANK YOU THANK YOU
I'm glad it worked. I learned that myself through experience. Taught me to look for the simple things first. I call it the "is it plugged in rule.