For limited movement, between point 20 and point 200, code is:
onClipEvent (enterFrame) {
if(Key.isDown(Key.RIGHT)) {
_x = Math.min (200, _x + 10);
}
if(Key.isDown(Key.LEFT)) {
_x = Math.max (20, _x - 10);
}
}
|
Results 1 to 4 of 4
Threaded View
|
Click Here to Expand Forum to Full Width |