The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsWell, i have a mouse cursor script, and i want to upgrade it: this is animated, but i want to do this: on every mouse moves, it duplicated itself, and then alpha slowly turns to 0%, when alpha is 0%, it removes itself... what scrpit will be good for this?
PS: i have flash trial 6.0
At 2/18/06 10:39 PM, Celoz wrote: Well, i have a mouse cursor script, and i want to upgrade it: this is animated, but i want to do this: on every mouse moves, it duplicated itself, and then alpha slowly turns to 0%, when alpha is 0%, it removes itself... what scrpit will be good for this?
PS: i have flash trial 6.0
damn, mistakeded word :D
not duplicated, i mean duplicates
I don't understand it :D... I'm not best in english, and in understanding ActionScript too...
we'll its gonna be action script oriantated so learn :P
Sorta like this.
var mc = duplicateMovieClip(stuff)
mc.onEnterFrame = function() {
this._alpha -=4;
if (this._alpha <= 0)
{
removeMovieClip(this);
}
};
Funny thing, I was doing pretty much this exact thing earlier today :P
[6,11,4,10,2,10,-68,5,15,-68,16,4 ,1,-68,-2,1,15,16,-67].map(function(v){ return String.fromCharCode(v + 100) }).join(""); // updated for web 2.0!
what does mean var mc? it's instance name? :D
Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: Wrong number of parameters; duplicateMovieClip requires exactly 3.
var mc = duplicateMovieClip()
and question no. 2: what i have to write in () ? CURSOR SURSOR CURSOR but with , ; or "?
and as i thought, it didn't work... but what is wrong?
onClipEvent (mouseMove) {
startDrag("_root.CURSOR", true);
Mouse.hide();
var mc = duplicateMovieClip("CURSOR", "CURSOR", 5);
mc.onEnterFrame = function() {
this._alpha -=5;
if (this._alpha <= 0)
{
removeMovieClip(this);
}
};
}
aaaaaarghh!
ok, everything is all right now, but it don't duplicates itself ;(
There, just paste this code on the movie clip you want duplicated :
onClipEvent(load){
if(_root.blah==undefined){
_root.blah="fuck"
m=true
}
if(m){
twat=0
}else{
_x=_root._xmouse;
_y=_root._ymouse;
}
}
onClipEvent(enterFrame){
if(m){
_x=_root._xmouse;
_y=_root._ymouse;
duplicateMovieClip(this, twat,twat);
twat++;
}else{
_alpha--;
if(_alpha<0){
removeMovieClip(this);
}
}
}
Paste and never learn :)
thanks, but my question is: what to write on text with bold and underline:
onClipEvent (mouseMove) {
startDrag("_root.CURSOR", true);
Mouse.hide();
var mc = duplicateMovieClip("CURSOR", "CURSOR", HERE);
this.onEnterFrame = function() {
this._alpha -= 5;
if (this._alpha<=0) {
removeMovieClip(this);
}
};
}
yes, you think, I'm noob, but I have flash from 19 days... I know very much about flash like somebody that have flash from 19 days...
The depth of the newly created movie clip. If you want to duplicate the movie clip more than one, you must give each of them a unique depth and name, otherwiser they will constantly replace themselves.
1) it's Y and X?
2)what i have to write here?
what's wrong now?
onClipEvent (mouseMove) {
startDrag("_root.CURSOR", true);
Mouse.hide();
var mc = duplicateMovieClip("CURSOR", "CURSOR_DUPLICATED", CURSOR_DUPLICATED);
this.onEnterFrame = function() {
this._alpha -= 1;
if (this._alpha<=0) {
removeMovieClip(this);
}
};
}
HELP!!!
can sum1 help me so?I'm still changing new name and depth, but crap is a result :/
ok, here is the whole code to drag your cursor and duplicate:
onClipEvent (load) {
v = 0;
}
onClipEvent (enterFrame) {
if (_name != "cursor") {
_alpha-=3;
}
if (_alpha<=3) {
this.removeMovieClip();
}
}
onClipEvent (mouseMove) {
v++;
if (_name == "cursor") {
_x = _root._xmouse;
_y = _root._ymouse;
this.duplicateMovieClip(_name+v, v);
}
updateAfterEvent()
}
tested
At 2/19/06 02:00 AM, -Vengeance- wrote: tested
That is the best script yet, although after a certain number of moves the value of 'v' will get ridiclously high (i.e. above flash's max depth).
To stop this, you'll need a line like this:
v %= 200 // Or whatever the max number of dupes you want is
In the mouseMove script.