hi, this is Doomshark/Kalzar coming at you with another tutorial. Today, you'll learn how to move a movieclip with the arrow keys on flash (If you didn't already read the title.)
As always, rate, subscribe, enjoy and comment!
If you're too lazy to copy it from the video, here's the actionscript:
onClipEvent(enterFrame) {
if(Key.isDown(Key.LEFT)) {
this._x -=5;
}
if(Key.isDown(Key.RIGHT)) {
this._x +=5;
}
if(Key.isDown(Key.UP)) {
this._y -=5;
}
if(Key.isDown(Key.DOWN)) {
this._y +=5;
}
}
kwl =)
u have a xbox 360?
robertrosca 3 years ago
who doesn't?
doomshark 3 years ago
xbox live? if u do what's ure gamertag? mines
RankWinner ftw
robertrosca 3 years ago
Darkness1328 ftw Castle Crashers iz da skillinz
doomshark 3 years ago