Search Tutorials
1]First you create a simple ball on the stage. 2]Then open the actions menu (F9 or option+F9 for macs) 3]Enter this code //up onClipEvent(enterFrame) { if (Key.isDown(Key.UP)) { this._y -= 5; } } //down onClipEvent(enterFrame) { if (Key.isDown(Key.DOWN)) { this._y += 7; } } //left onClipEvent(enterFrame) { if (Key.isDown(Key.LEFT)) { this._x -= 7; } } //right onClipEvent(enterFrame) { if (Key.isDown(Key.RIGHT)) { this._x += 7; } } i added notes to vaugely explain what each action is doing ENJOY!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|