Cursor move back to (100,100)
I have made a simple "maze game".
Player is sent to frame 10 if they reach the end goal or frame 20 if they accidentally "rollover" my walls (button). In frame 1, I successfully remove the mouse and add a Movie Clip to the Mouse/Cursor. I remove the MC when they go to frame 10 OR frame 20 and then when they replay and are sent back to frame 1. The MC again appears as the Cursor. GREAT. Now here's my problem. When they are sent back to frame 1, I want the Cursor to be at an exact position to replay the game. Right now, it ends up wherever they have the cursor pointing and if it is touching my "walls", game over immediately. Here is the code I have on frame 1. It is working BUT I need to add code that makes the cursor ALSO go to a specific position.
stop();
lions_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_2);
function fl_MouseOverHandler_2(event:MouseEvent):void
{
gotoAndStop(20);
}
babySleep_btn.addEventListener(MouseEvent.MOUSE_OVER, fl_MouseOverHandler_3);
function fl_MouseOverHandler_3(event:MouseEvent):void
{
gotoAndStop(10);
}
stage.addChild(feather4_mc);
feather4_mc.mouseEnabled = false;
feather4_mc.addEventListener(Event.ENTER_FRAME, featherMouse);
function featherMouse(event:Event)
{
feather4_mc.x = stage.mouseX;
feather4_mc.y = stage.mouseY;
}
Mouse.hide();
THANK YOU for any suggestions, Gene
