Forum Topic: AS: Custem Cursor

(4,425 views • 39 replies)

This topic is 2 pages long. [ 1 | 2 ]

<< < > >>
None

TeeTeeJay

Reply To Post Reply & Quote

Posted at: 11/24/07 12:26 PM

TeeTeeJay NEUTRAL LEVEL 07

Sign-Up: 02/17/06

Posts: 53

At 3/17/06 11:49 AM, Pyromaniac wrote: This is all outdated AS. Here is a much better way.
Custom Cursor
1-Make a Movieclip.
2-Make the clicky part on the little plus inside the MC.
3- Give it these actions
onClipEvent(load){ Mouse.hide();
}
onClipEvent(enterFrame){
this._x=_root._xmouse;
this._y=_root._ymouse;
}

i tried that...didn't work...and pyro....you created the tutorial collab '06 right? i have a question bout cursors..i have the actionscript for a cursor...I made the animation for a cursor...its kinda like the...
Unreal II cursor(wait for a while without movin the mouse and something happens...)problem is...how do i set the cursor to STOP playing the animation when the player is moving the mouse? i know how to do that for buttons though...

AS: Custem Cursor


Happy

BettaThanYou

Reply To Post Reply & Quote

Posted at: 12/11/07 10:21 AM

BettaThanYou NEUTRAL LEVEL 09

Sign-Up: 02/10/07

Posts: 33

how do you change it or make it animate if you click

BBS Signature

None

AeroJenix

Reply To Post Reply & Quote

Posted at: 3/1/08 12:46 PM

AeroJenix NEUTRAL LEVEL 01

Sign-Up: 02/24/08

Posts: 4

Hey, it works and all, but is there a way where you can keep the cursor there? like when you press play to go to the next scene. cause it keeps disappearimg. then pops out and lags XD


Thinking

Foiz5000

Reply To Post Reply & Quote

Posted at: 4/7/08 07:40 PM

Foiz5000 NEUTRAL LEVEL 04

Sign-Up: 03/22/08

Posts: 1

Awesome I have been trying to figure this out, I had it all worked out except the mouse would grab the far right side of the movie clip, which sucked....

From a few things I picked up around the forums I came up with a easy way to set the borders by borrowing from the original poster's script. The borders I used are for an odd sized flash though:

onClipEvent (load) { // movie clip is on current frame
Mouse.hide(); // hides the cursor
startDrag(this, true, 100, 100, 550, 360); // mouse drags this object, specifies borders
}

Thanks for the post!


None

mwmike

Reply To Post Reply & Quote

Posted at: 6/6/08 05:30 AM

mwmike DARK LEVEL 12

Sign-Up: 02/23/08

Posts: 2,325

How do you get a cursor that stays for the whole flash.


None

mustangman24

Reply To Post Reply & Quote

Posted at: 8/11/08 12:50 AM

mustangman24 NEUTRAL LEVEL 07

Sign-Up: 02/14/07

Posts: 118

k after some testing i found this code

onClipEvent(enterFrame){ Mouse.hide();
this._x = _root._xmouse
this._y = _root._ymouse
updateAfterEvent ()
}

this is the best code also since when u right click it will still be the custom cursor not the real one also if you set the FPS to 30 it will be very smooth

ill give you a ten because you let me give you a zero!, My only friend the end,
My latest game
My page

BBS Signature

None

Magical-Zorse

Reply To Post Reply & Quote

Posted at: 8/11/08 02:24 AM

Magical-Zorse DARK LEVEL 11

Sign-Up: 05/10/08

Posts: 882

At 6/6/08 05:30 AM, mwmike wrote: How do you get a cursor that stays for the whole flash.

you put the cursor in each frame, duh

Now remember kids, in science it doesn't suck, it pulls.


None

zrb

Reply To Post Reply & Quote

Posted at: 8/11/08 02:25 AM

zrb LIGHT LEVEL 10

Sign-Up: 08/08/06

Posts: 3,861

At 6/6/08 05:30 AM, mwmike wrote: How do you get a cursor that stays for the whole flash.

Make a new layer, and paste it on it, its the simplest way.

I can speak french :3 || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

RandomHuman

Reply To Post Reply & Quote

Posted at: 8/11/08 03:08 AM

RandomHuman FAB LEVEL 07

Sign-Up: 04/04/07

Posts: 278

your grammar is terrible and it's Custom, not Custem...

Zed Elementia (The Warrior that Pwnzerizes you!!!)

Do you like my driving? Then call 1-800-EAT-SHIT


None

RandomHuman

Reply To Post Reply & Quote

Posted at: 8/11/08 03:10 AM

RandomHuman FAB LEVEL 07

Sign-Up: 04/04/07

Posts: 278

Or you could make it universal (go look in the constants menu of AS2.)

Zed Elementia (The Warrior that Pwnzerizes you!!!)

Do you like my driving? Then call 1-800-EAT-SHIT


All times are Eastern Standard Time (GMT -5) | Current Time: 11:23 AM

<< Back

This topic is 2 pages long. [ 1 | 2 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!