View Full Version : Actionscripted Cursor Effects Tutorial
The Pirate
06-09-2006, 12:01 PM
Here's a tutorial I did to teach you guys a neat little actionscript trick. The whole tutorial is done in flash and is found below.
http://i70.photobucket.com/albums/i92/jayshostaccount/AScursortut.swf
(the yellow character in the last frame is Clyde, the fullbody character from a webtoon I have in the works)
I take it this should go in the actionscript tutorials section, if a mod could be so kind as to move it for me ;)
Ninja Stick2
06-09-2006, 12:16 PM
great tut good job this needs to b in the official area it should b moved
and.we.all.fall.down
06-09-2006, 06:00 PM
Bravo! My cursor pwns now! Thanks mate.
laaack
06-09-2006, 06:07 PM
Sorry, a person who picked up their copy of Flash cannot follow along that well.
It took me a while to learn how to make a movie clip, and you lacked the fact that you must press F8 to make a movie clip.
Besides that, I did learn a few things.
maggot789
06-10-2006, 12:15 PM
NIFTY! lol that was pretty cool. too much code though.
Ninja Stick2
06-11-2006, 11:45 AM
i went through insert to get a movie clip and i had fun making blood with it rotating balls exploding gernades its endlees posibilitis
StickShaz
07-20-2006, 12:13 PM
wicked tutorial :D gonna make 1 now
stick picklez
07-22-2006, 02:57 PM
cooooooooooooooool
770nogarD
07-22-2006, 04:04 PM
Nifty tutorial. I'll proably try that out some day. Now now, sime I'm busy trying to design my own tennis ball cannon. But some day...
ShadowsofYesterday
10-08-2007, 01:42 AM
The tutorial didn't work for me. At best, I got a funky laser light show. It only showed the first frame of the "effect", and it would only load one of the "effects" at a time.
What in the Hell am I doing wrong?
EDIT: Here, let me show you what I'm talking about.
http://img504.imageshack.us/img504/4407/examplenotworkingyq3.swf width=400 height=125
FrAnKeH
10-08-2007, 05:48 AM
Well either the pirates AS is wrong.... Or you're doing it wrong.
I'm going with the latter.
Sunder Forge
10-08-2007, 09:02 AM
The tutorial didn't work for me. At best, I got a funky laser light show. It only showed the first frame of the "effect", and it would only load one of the "effects" at a time.
What in the Hell am I doing wrong?
EDIT: Here, let me show you what I'm talking about.
http://img504.imageshack.us/img504/4407/examplenotworkingyq3.swf width=400 height=125
DId you type out each line? if so then you probally mistyped something.
ShadowsofYesterday
10-09-2007, 04:09 AM
Well either the pirates AS is wrong.... Or you're doing it wrong.
I'm going with the latter.
I copied the tutorial step by step. I even went over it again and again to make sure I'd done everything right. Still, that was the best result I could produce.
Grubber: No, I copy/pasted directly from the tutorial.
Gavel
10-09-2007, 02:07 PM
I copied the tutorial step by step. I even went over it again and again to make sure I'd done everything right. Still, that was the best result I could produce.
Grubber: No, I copy/pasted directly from the tutorial.
Try it without the glow. What exactly is the individual white drop looking thing supposed to look like when it's animating?
Scorpioxxx
10-10-2007, 10:42 AM
There is a slight error if i remember, read through the code and you'll find it.
vertman
10-10-2007, 12:35 PM
Awesome tutorial, but 1 part is missing. I can create a thing to multiply to numbers using input boxes and dynamic text boxes. The tut worked but i don't have 0 knowledge.
Gavel
10-10-2007, 12:57 PM
Awesome tutorial, but 1 part is missing. I can create a thing to multiply to numbers using input boxes and dynamic text boxes. The tut worked but i don't have 0 knowledge.
Aaaaaand your point is?
ShadowsofYesterday
10-11-2007, 11:01 PM
There is a slight error if i remember, read through the code and you'll find it.
I thought there might have been, but everyone was praising the tutorial and talking about how awesome it is.
Besides, I'm honestly not that great with ActionScript. I mostly just steal other people's scripts and save them to a text file, so I'll have them for reference whenever I need them.
ShadowsofYesterday
10-15-2007, 03:49 PM
Sooooo...
Anyone gonna help me with this?
ya it would only play the first frame of my animation wats up with that?
axle_exil
10-20-2007, 06:35 AM
you'know....i was about to odda punch you at the start but you got my attention and made me not be dumb :Smile:
ShadowsofYesterday
10-20-2007, 04:51 PM
This tutorial would be more helpful if it actually worked.
Help plz.
Garuda
11-23-2007, 01:15 PM
Dude this is confusing, how do you make a movie clip without anything to turn into one?
Scorpioxxx
11-23-2007, 03:44 PM
Dude this is confusing, how do you make a movie clip without anything to turn into one?
Use the 'insert new symbol' option, or, just turn something into a movieclip and delete it once inside then continue using the empty MC. If anyone really needs the correct code i'll see if I can find it/fix it.
Karthago
12-07-2007, 07:11 PM
i wondered about the same thing like metal flower...
AND WHAT DO I HAVE TO EXPORT IT AS? .GIF? .SWF?!
this is no tutorial for someone who hasnt got ANY experience with actionscripting... like me! maybe its the lateness (3:10 AM) or its the fact that i have to translate it in my language...
but i think that was too difficult... im totally defused and hate actionspripting like never :D
Gavel
12-07-2007, 08:40 PM
i wondered about the same thing like metal flower...
AND WHAT DO I HAVE TO EXPORT IT AS? .GIF? .SWF?!
this is no tutorial for someone who hasnt got ANY experience with actionscripting... like me! maybe its the lateness (3:10 AM) or its the fact that i have to translate it in my language...
but i think that was too difficult... im totally defused and hate actionspripting like never :D
GIF files use no type of code. So I don't know why you'd even think that. Just use your head and stop trying to overcomplicate things.
azam_me91
12-07-2007, 08:47 PM
Neat Stuff...Nyfti
Raffi
12-08-2007, 03:18 AM
Eh, it doesn't work.
Scorpioxxx
12-08-2007, 03:45 AM
look, im gonna go get the WORKING code right now, its a simple error that anyone with actionscript knowloage could figure out, I'll edit with the right code in a min.
EDIT:
Here, try to figure out whats different:
In alpha 0 thing
onClipEvent (load) {
nmber = 2;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
nmber++;
_root.effect.duplicateMovieClip("effect"+nmber, nmber);
_root["effect"+nmber]._x = this._x;
_root["effect"+nmber]._y = this._y;
_root["effect"+nmber]._rotation = random(360)+1;
if (nmber>=60) {
nmber = 2;
}
}
in frame
Mouse.hide ()
Raffi
12-08-2007, 04:14 AM
It works now^^ thx.
Can't really be bothered to figure out the code =(
Screw you, Raffeh.
nicknam4
12-11-2007, 04:48 PM
This is awesome! I can't wait to try!
ShadowsofYesterday
12-11-2007, 05:03 PM
its a simple error that anyone with actionscript knowloage could figure out
Yeah, well I don't actually know the first thing about ActionScript. I just steal other people's work and pretend I know AS.
EDIT: Okay, it works now, but say I want the cursor to pass behind another object. How would I make it go behind the object, instead of showing up in front of it. Simply putting the cursor on a lower layer doesn't seem to do the trick, and putting it inside a movie clip on a lower layer, and changing "root" to "this" doesn't seem to work either.
Scorpioxxx
12-12-2007, 01:50 PM
onClipEvent (load) {
depth = 61;
_root.effect.duplicateMovieClip("thing you want"+depth, depth);
_root["effect"+depth]._x = add x here._x;
_root["effect"+depth]._y = add y here._y;
depth2 = 62;
_root.effect.duplicateMovieClip("2nd thing you want"+depth2, depth2);
_root["effect"+depth2]._x = add x here._x;
_root["effect"+depth2]._y = add y here._y;
You get the general idea, you just spawn everything by AS and giving 'depth<number>' any unique number lessthan than 100. I set up 2 for you, excluding the instance names and x/y co-ords.
Change the cursor code to;
onClipEvent (load) {
nmber = 101;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
nmber++;
_root.effect.duplicateMovieClip("effect"+nmber, nmber);
_root["effect"+nmber]._x = this._x;
_root["effect"+nmber]._y = this._y;
_root["effect"+nmber]._rotation = random(360)+1;
if (nmber>=159) {
nmber = 101;
}
}
Alpha23
12-17-2007, 04:52 AM
Very Nice Tutorial Pirate! :)
Very 'Nifty'
Raffi
12-17-2007, 12:26 PM
NO MORE NIFTY.
Nifty.
vBulletin® v3.6.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.