00:00
00:00
Newgrounds Background Image Theme

Someone gifted Furvoc supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

As Mouse Avoider Tutorial

1,296 Views | 10 Replies
New Topic Respond to this Topic

As Mouse Avoider Tutorial 2006-02-05 14:48:17


http://img157.images..ge=mousething7rb.swf

You ever wanted to make a mouse avoider game?
Well here is the script

First put a stop(); action in every frame.

Make a cursor (you can let the old one, but it looks better). Convert it into a movieclip, give it the instance name cursor and the folowing script :

onClipEvent (load)
{startDrag("_root.CURSOR", true);
Mouse.hide();
}

Then the walls (I made it so that you are going into the previous frame if you are touching the walls) : Draw them (use thick lines for Mouse Lag Cheater) and convert them into a button and give them the following script :
on (rollOver) {
prevFrame();
}

And now the moving objects :
Draw the objects and convert them into movieclips
on (rollOver) {
_root.prevFrame();
}

Now, let's go to the buttons which you must touch to start and go out of the level. I used a 2 Frame System. In one Frame is nothing except Background and Start Button in the second frame are walls and enemies. The Start button is in the nothing-frame and the next button is in the game frame.

Put the start button in the nothing-frame (the next frame is the game frame) and give it the following script :

on(rollOver) {
nextFrame();
}

If you want to press the button until the game starts replace the rollOver with the thing you like (press or release). Give the next-button the same script but do it in the game frame.

I didn't add some graphical stuff but you can do it. Add blends, backgrounds etc.

I hope this helped

Response to As Mouse Avoider Tutorial 2006-02-05 15:01:45


it was so buggy!
you could just move your mouse very fast over the walls or i could use the mouse wheel!

Response to As Mouse Avoider Tutorial 2006-02-05 15:04:08


At 2/5/06 03:01 PM, Creeepy wrote: it was so buggy!
you could just move your mouse very fast over the walls

add

onMouseMove=updateAfterEvent;

to _root and it'll fix it

or i could use the mouse wheel!

or rightclick

Response to As Mouse Avoider Tutorial 2006-02-05 15:05:24


fairly buggy, but good :).

someone already did a mouse avoider tut but i don't think it matters.

Good job :D!

Response to As Mouse Avoider Tutorial 2006-02-05 15:08:37


Make a 7 point perspective API-based 3D mouse avoider game tutorial and I won't hate you.

Yes, it's possible.

BBS Signature

Response to As Mouse Avoider Tutorial 2006-02-05 15:10:37


At 2/5/06 03:08 PM, -Gust- wrote: Make a 7 point perspective API-based 3D mouse avoider game tutorial and I won't hate you.
Yes, it's possible.

no it's not because the mouse only moves on two axises, x, and y, if you want to do that you'll need a 3d mouse first

Response to As Mouse Avoider Tutorial 2006-02-05 15:12:32


There's the mouse wheel listener.


BBS Signature

Response to As Mouse Avoider Tutorial 2006-02-05 15:33:52


Im a noobie at this. I tried to make the game like you said. But the curser that i made did not work, the mouse did not even show up on the screen.
Probably some stupid mistake a newbie does...
Your game was pretty good, it was pretty easy and its really easy to cheat. But it was a job well done.

Response to As Mouse Avoider Tutorial 2006-02-18 05:27:18


ggeeeze this is darn embarrassing, but i've been doing AS four years and still dont know how to use the mouse wheel xP#

any help :)

Response to As Mouse Avoider Tutorial 2006-02-18 05:37:03


click my sig, it links to AS:Main then go into intermediate. then click the link to AS: Mouse wheel.


========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature