ForumsProgramming ForumGAME HELP: Make your character move

6 3730
ug5151
offline
ug5151
587 posts
Nomad

Before you begin, you have to right click the character you have. Then name your character then press F9 on your keyboard. Then you copy and paste this script:
onClipEvent(enterFrame){
if(Key.isDown(Key.RIGHT)){
this._x += 5;
}
if(Key.isDown(Key.LEFT)){
this._x -= 5;
}
if(Key.isDown(Key.UP)){
this._y -= 5;
}
if(Key.isDown(Key.DOWN)){
this._y += 5;
}
}
Copy and paste this in your awesome game and your character will be moving!

  • 6 Replies
PrideRage
offline
PrideRage
148 posts
Nomad

@komputerkurt
Why do you think AS2 would be useless ?
It might have less functions but it's easier to get into the world of AS.

Darkroot
offline
Darkroot
2,763 posts
Peasant

Kurt I swear to go I will smack you upside your head. Hes just trying to be helpfull and hes new so show some professional respect.


yeah but this is meant for stupid f***ing script kiddies, so if they're going to copy code why not copy AS3?

Uhh more people have acess to that lnaguage at the present and AS3 is just an upgrade you can do basically the same things in AS3 though it not as clean and stable though.
ug5151
offline
ug5151
587 posts
Nomad

Please don't use that word, and no i'm not new, but i'm not pro.

Showing 1-3 of 6