View Full Version : Custom cursor width becomes closer to 0 as it reaches center of movie
Evil_Kefka
07-31-2005, 05:34 PM
Is it possible to have the custom cursor's width become closer and closer to 0 as it reaches the center of the movie, then when it reaches one of the sides after reaching the center, it's width becomes negative, so it's backwards?
deathcloud33
07-31-2005, 07:30 PM
onClipEvent(enterFrame){
this._xscale=(this._x-(flashwidth/2))*whatever;
}
put that on the mouse cursor...
flashwidth is the width of the stage, so it is referencing the middle of the stage instead of the left wall, and "whatever" is a variable you can tweek to make the width change more or less for different distances.
Evil_Kefka
07-31-2005, 08:51 PM
onClipEvent(enterFrame){
this._xscale=(this._x-(flashwidth/2))*whatever;
}
put that on the mouse cursor...
flashwidth is the width of the stage, so it is referencing the middle of the stage instead of the left wall, and "whatever" is a variable you can tweek to make the width change more or less for different distances.
So what you would put at flashwidth is the center of the movie, and I'm kinda confused at whatever...
mambenanje
07-31-2005, 08:56 PM
onEnterFrame=function(){
mymouse._x=(Stage.width/2-mymouse._x)/Stage.width*100;
}
hope it helps u
Evil_Kefka
07-31-2005, 09:12 PM
onEnterFrame=function(){
mymouse._x=(Stage.width/2-mymouse._x)/Stage.width*100;
}
hope it helps u
I'm guessin' mymouse is the instance name of the cursor?
Um..I tried it, but for some reason it didn't work.
Evil_Kefka
07-31-2005, 09:38 PM
Deathcloud, thank you, I figured it out. Mamben, thank you very much for trying.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.