onClipEvent(enterFrame) {
if(Key.isDown(Key.DOWN)) {
this._Y=_y+30;
this._rotation=180;
}
if(Key.isDown(Key.UP)) {
this._Y=_y-30;
this._rotation=0;
}
if(Key.isDown(Key.LEFT)) {
this._X=_x=30;
this._rotation=-90;
}
if(Key.isDown(Key.RIGHT)) {
this._X=_X+30;
this._rotation=90;
}
if(Key.isDown(Key.ENTER)) {
this._width=_width-50;
this._height=_height-75;
}
if(Key.isDown(Key.HOME)) {
this._width=_width+50;
this._height=_height+75;
}
if(_y<=-400) {
_y=650;
}
if(_y>800) {
_y=-300;
}
if(_X<=-400) {
_X=1000;
}
if(_X>1000) {
_X=-200;
}
}
Tidak ada komentar:
Posting Komentar