please help
Moderators: HeRetiK, The inner Core
please help
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
- 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:
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
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
- HeRetiK
- Site Admin
- Posts: 8002
- Joined: Mon Mar 31, 2003 7:50 pm
- Location: yurop
- Contact:
- HeRetiK
- Site Admin
- Posts: 8002
- Joined: Mon Mar 31, 2003 7:50 pm
- Location: yurop
- Contact:
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?
- HeRetiK
- Site Admin
- Posts: 8002
- Joined: Mon Mar 31, 2003 7:50 pm
- Location: yurop
- Contact:
Who is online
Users browsing this forum: No registered users and 4 guests