[fmx2004]Function Coolio

I found a great way to make simple movement. (You can add other arguments if you’d like):
in teh frame:
[AS]function movement(object, key, xspeed, yspeed) {
if (Key.isDown(key)) {
object._x += xspeed;
object._y += yspeed;
}
}
[/AS]
in teh movie clip:
[AS]//move right
movement(this, Key.RIGHT, 5, 0);
[/AS]
u can move in any direction by changeing the key and x & y speeds! :slight_smile: