Quantcast
Channel: Benoît Freslon's blog - Freelance Game Designer / Game developer » mouse
Browsing latest articles
Browse All 2 View Live

Image may be NSFW.
Clik here to view.

ActionScript: Orient an object to the mouse cursor with Flash

How to orient an objet to an other ? Just put those lines and change the instance name myTank. 1  Download the source code here : [www.thisisgameplay.com]_Orient_object_to_mouse_cursor.fla // This...

View Article


Image may be NSFW.
Clik here to view.

ActionScript: Throw bullets to mouse direction

After calculating the angle of 2 graphic objects, you can also use this angle to throw a bullet to the object direction with the trigonometry. How ? Calculating the angle (in radian) between 2 graphics...

View Article

Browsing latest articles
Browse All 2 View Live