Hi everyone!
I need help with my flash movie. I would like to move a Mc with 2 buttons without having to simulate the actual movement inside the movieclip.
I have managed to move the clip with the arrow keys with this script:
onClipEvent (load) {
// declare and set speed variable
speed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP) && !Key.isDown(Key.DOWN)) {
_y -= speed;
}
if (Key.isDown(Key.DOWN) && !Key.isDown(Key.UP)) {
_y += speed;
}
}
but i haven’t figured out how to do this with using buttons.
Any help much appreciated!
pier