If yes, it self-terminates.
Remove Movie Clip ("") Else
If no, the Laser Shot continues its journey.
Set Property ("", X Position) = my_x+xmov Set Property ("", Y Position) = my_y+ymov End If
And lives happily ever after. Now that you have understood the theory behind detecting the mouse angle and created the gun that can track its target. It's time to move on to the final installment of the arcade game series - the Laser Collision Checking
|» Level Advanced|
Rating: 6 Votes: 175
|Flashjunkie is a self-professed obsessive addict of life. Due to the highly artistic nature required of an Art Director for an Ad agency, he took up Flash to add some math to his diet.|
|Download the files used in this tutorial.|
|Download (30 kb)|
|More help? Search our boards for quick answers!|