
We used a simple code:
on (keyPress "c") {
gotoAndPlay(2);
}
on (keyPress "x") {
gotoAndPlay(41);
}
This code just corresponds an IPAC input to a key press, then once this has been 'triggered' a different frame is played within the movie clip. Within the movie clip there was a simple motion tween, moving the compass hand from one position to another around the compass. The keyPress 'c' corresponded to an arcade button and the 'x' keyPress corresponded to a magnetic switch.
No comments:
Post a Comment