Sup Dawgs
Noob here.
I’m currently working on a Whack-The-Mole kind of game with paper documents flying in and out of the screen and the player having to stamp the pieces before they exit the screen.
Here’s what I got up to now:
Mouse.hide();
stamp_mc.startDrag(true);
letter_mc.addEventListener(MouseEvent.CLICK, stampclick);
function stampclick(event:MouseEvent){
stamp_mc.gotoAndPlay (2);
letter_mc.gotoAndPlay (2);
letter_mc.tween.stop();
As you can see when a letter is stamped, it shifts to another frame of its instance which shows the same letter but stamped.
I’m currently having the letter move across the screen using a tween. My aim is to make the letter, once stamped, stop moving, blink a few times and vanish. This doesn’t work; instead the letter just keeps on moving and I get the following error:
[COLOR=#000000][FONT=verdana]TypeError: Error #1010: A term is undefined and has no properties.[/FONT][/COLOR]
This doesn’t happen if I just let the paper pass, so I’m pretty sure it has something to do with the animation. Any help would be much appreciated.
Thanks in advance