Orient an object to the mouse cursor
How to orient an objet to an other ?
Just put those lines and change the instance name myTank.
// This object will always look at the mouse cursor
myTank.addEventListener(Event.ENTER_FRAME, tankEnterFrame);
// This function will be launched every frame (25 times by seconds)
function tankEnterFrame(pEvt) {
// pEvt.currentTarget : myTank
var mc=pEvt.currentTarget;
// Get the radian [...]
Posted on January 9, 2010 at 18:17 by admin · Permalink
· Leave a comment
In: ActionScript, tutorial · Tagged with: actionscript 3, mouse, orientation
In: ActionScript, tutorial · Tagged with: actionscript 3, mouse, orientation
How to make a game like Jetman – step 1 – The Jetman
In my first tutorial I will show you how to make a flash game like Jetman.
A simple very famous casual game on facebook and very addictive.
Play Jetman
1. First of all you have to download the Adobe Flash IDE: Adobe Flash CS3 or Adobe Flash CS4
We will code the game with ActionScript 3.0 (the programming language [...]
Posted on December 18, 2009 at 17:06 by admin · Permalink
· One Comment
In: ActionScript, Game Design, tutorial · Tagged with: actionscript 3, flash, Game Design, jetman, tutorial
In: ActionScript, Game Design, tutorial · Tagged with: actionscript 3, flash, Game Design, jetman, tutorial













