Thursday, 25 October 2007

The Daisy Chained Magnetic Funness!!!

After experimenting with the IPAC card, Alberto and i decided that the best soltuion for the previous task set was to keep the flash side of it fairly simply, and get to grips with the Ipac car. As a result we decided on a simply animation that included a arrow moving around a compass that would be triggered by both the arcade button and also the magnet.



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: