Flash Tutorial - Controlling a Character/movieclip with Arro

By: Koolio1230

204 views

Uploaded on March 30, 2008 by Koolio1230 Powered by YouTube

Here is the actionscript/code for the movieclip to control it, just copy and paste it:

var speed = 5;

this.onEnterFrame = function() {
if (Key.isDown(Key.UP)) {
square._y -= speed;
}
if (Key.isDown(Key.DOWN)) {
square._y += speed;
}
if (Key.isDown(Key.LEFT)) {
square._x -= speed;
}
if (Key.isDown(Key.RIGHT)) {
square._x += speed;
}
};

Tags:
Actionscript, Arrows, Code, Controoling, CS3, Design, Flash, Games, Keys, Moving, Pro, Proffesional, Tutorials, How To
Comments on Flash Tutorial - Controlling a Character/movieclip with Arro

RECOMMENDED CHANNELS