Ive made a gun in flash with reloading and shooting, i need help with it because i’m not sure how to attach a bullet to the gun without it following the direction of the guns path.
Any suggestions are welcome and if anyone has any idea’s please let me know, im going to add a safety button at some point aswell.
The swf is attached.
I think that it doesn’t even aim at your mouse.
Yep the aim is off - you should check the equation you’re using to calculate rotation.
a suggestion for the bullets simply Use TweenLite
- Create a new Round
- set its x, y to that of the barrel point
- Apply the tween using the target co-ordinates mouseX and mouseY, possibly with the following easing function fl.motion.easing.Exponential.easeOut - but thats not entirely necessary.
BTW, welcome to Kirupa and I think your post is in the wrong place :red:
Good Luck and Cheers
Kk I will look at the aiming. In reply to the help with shooting is there a tutorial to show me as I am shot of new to flash. Thanks again for your help so far.