Be a Supporter!

Custom Cursor Crap

  • 286 Views
  • 3 Replies
New Topic Respond to this Topic
DaSexCPikle
DaSexCPikle
  • Member since: Aug. 10, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Custom Cursor Crap 2009-03-04 02:44:32 Reply

I made my own cursor which exist on scene 2, the MC named 'cursor'
in cursor;

onClipEvent(enterFrame){
this.swapDepths(99998)
Mouse.hide()
startDrag(this,true)
}

And so far, works. UNTIL:

I copied the MC to scene 3, same code, same mc name. When I enter scene 3, 2 cursors appear. I have another MC that always aims at _root.cursor, but on scene 3, it aims where the cursor is at load, it seems that the cursor on scene 3 isn't following the mouse but the cursor from scene 2 is... which is weird 'cos I'm skipping from scene 1 to scene 3.

The 2nd cursor that appears follows the mouse but the aiming MC doesn't respond to it.

Denvish
Denvish
  • Member since: Apr. 25, 2003
  • Offline.
Forum Stats
Member
Level 46
Blank Slate
Response to Custom Cursor Crap 2009-03-04 05:04:25 Reply

At 3/4/09 02:44 AM, DaSexCPikle wrote: I made my own cursor which exist on scene 2, the MC named 'cursor'
in cursor;

onClipEvent(enterFrame){
this.swapDepths(99998)
Mouse.hide()
startDrag(this,true)
}

The 2nd cursor that appears follows the mouse but the aiming MC doesn't respond to it.

Well for starters that code should be running onClipEvent(load), not enterFrame.

Secondly, if you're skipping straight from Scene 1 to Scene 3, the cursor from Scene 2 shouldn't even be getting created, double-check to make sure you're avoiding playing even one frame of Scene 2.

Thirdly, if all else fails, give the cursors different Instance Names and use _root.instancename.removeMovieClip(); to delete previous cursors from within the onClipEvent(load) function


- - Flash - Music - Images - -

BBS Signature
DaSexCPikle
DaSexCPikle
  • Member since: Aug. 10, 2005
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Custom Cursor Crap 2009-03-04 07:36:20 Reply

I've tried all 3 of those, no results.

on(release){
gotoAndStop("Scene 3",1)
}

in a button.

coocooletmoi
coocooletmoi
  • Member since: Aug. 15, 2008
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Custom Cursor Crap 2009-03-04 08:13:59 Reply

Make your cursor, add a new layer called cursor and put your cursor on that layer. then do this code :

// All code by coocooletmoi
// Please give me some credit.

onClipEvent(enterFrame) {
this.startDrag(Mouse)
Mouse.hide()
// After this its just some extra code so when you right click the mouse still hides. 
// Delete this if un-needed
// CODE START
if (Key.isDown(2)) {
Mouse.hide()
}
// CODE END
}

There you are. If it can help you.......


WARNING // EPIC POST ABOVE \\ WARNING
Awesome threads : Mountain Dew Crew -Modify Newgrounds to fit your taste! - More...

BBS Signature