please help

Got questions about this site or anything related to it? There ya go.

Moderators: HeRetiK, The inner Core

Guest

please help

Postby Guest » Tue May 04, 2004 7:26 am

hi there .. iv used an action script , which is just rain falling, but i need it to stop half way through my flash story. so on the frame i where i want it to stop, i deleted the action, but the rain still keeps goin. does anyone know how i can stop it?? :? please help

User avatar
Spaced Ape
Grand Poo-bah of Syn's fat ass
Posts: 8899
Joined: Tue Apr 08, 2003 12:57 am
Location: Milky Way Galaxy
Contact:

Postby Spaced Ape » Tue May 04, 2004 12:54 pm

have you tried a human sacrifice?
Is there a promised land
Or am I on the journey going to nowhere?
Are the streets paved with gold
Or am I slipping on the mold that slowly grows there?
DevilDriver - Monsters of the Deep

User avatar
bartard
distorted
distorted
Posts: 836
Joined: Tue Apr 08, 2003 11:10 am
Location: UK

Postby bartard » Tue May 04, 2004 1:49 pm

what was your script?
bartard will never die

User avatar
HeRetiK
Site Admin
Site Admin
Posts: 8002
Joined: Mon Mar 31, 2003 7:50 pm
Location: yurop
Contact:

Postby HeRetiK » Tue May 04, 2004 2:43 pm

show us the script, without it it's a little hard to tell :?

Guest

Postby Guest » Wed May 05, 2004 12:40 pm

heres the script :

while (i<40) {
duplicateMovieClip("rain", i, i);
setProperty(i, _x, random(1000)-100);
setProperty(i, _y, 0);
setProperty(i, _alpha, 500-random(50));
scale = random(100);
setProperty(i, _xscale, scale);
setProperty(i, _yscale, scale);
i = i+1;
}

User avatar
HeRetiK
Site Admin
Site Admin
Posts: 8002
Joined: Mon Mar 31, 2003 7:50 pm
Location: yurop
Contact:

Postby HeRetiK » Thu May 06, 2004 4:50 am

Anonymous wrote:heres the script :

while (i<40) {
duplicateMovieClip("rain", i, i);
setProperty(i, _x, random(1000)-100);
setProperty(i, _y, 0);
setProperty(i, _alpha, 500-random(50));
scale = random(100);
setProperty(i, _xscale, scale);
setProperty(i, _yscale, scale);
i = i+1;
}


hmmm... you could enter an if loop.


if (raining) {
while (i<40) {
duplicateMovieClip("rain", i, i);
setProperty(i, _x, random(1000)-100);
setProperty(i, _y, 0);
setProperty(i, _alpha, 500-random(50));
scale = random(100);
setProperty(i, _xscale, scale);
setProperty(i, _yscale, scale);
i = i+1;
}
}

in the first frame where the rain starts you have to set raining to true:

raining = true;

at the frame where you want it to stop you set it to false and the script stops generating rain:

raining = false;

got any other scripts in your rain movieclips?

Guest

Postby Guest » Thu May 06, 2004 12:57 pm

nah thats the only script i used. thanx heaps for all ur help :)

User avatar
HeRetiK
Site Admin
Site Admin
Posts: 8002
Joined: Mon Mar 31, 2003 7:50 pm
Location: yurop
Contact:

Postby HeRetiK » Thu May 06, 2004 4:21 pm

no problem, I hope it works. :wink:


Return to “Questions”

Who is online

Users browsing this forum: No registered users and 10 guests