all groups > flash actionscript > february 2006 >
You're in the

flash actionscript

group:

steady-mouse game


Re: steady-mouse game mostlyliquid
2/16/2006 4:45:00 PM
flash actionscript:
For the button in the movie clip use either _root.gotoAndPlay(1) or
_parent.gotoAndPlay(1).

Not sure what u are trying witht the cheat thing...what comes to mind
is put a big transparent button on each side of the maze - or in any
'cheat' areas - and use the same code to zap the player back to the
beginning. HTH!

-John
steady-mouse game PhilJ6000
2/16/2006 11:35:29 PM
I'm new to actionscript, and I'm making a simple steady mouse game. (A game
where the cursor has to get thru a maze type thing without touching the walls).
The way I'm doing it so far, is just making the walls all together as a button
that says-
on (rollOver) {
gotoAndPlay(1)
}
This works fine, sending them back to the first frame.

When I try to apply this to a movie clip, to make moving walls that they must
avoid, i use the same code, and when the mouse comes in contact with the moving
walls, it just goes to the first frame of the movie clip, and the main timeline
stays on the same "level." (I have it set so each frame is a different level)

I know its a n00b question, but any help will be greatly appreciated :)

Another thing- is there a way to make it so you can't cheat and bring the
mouse to the outside of the web browser by minimizing it, looping the mouse
around it and getting to the finish? Thanks
AddThis Social Bookmark Button