View Full Version : MC appears at random times.
brown_knite
February 24th, 2004, 05:34 PM
I am wondering how to make the MC "bonus" appear at random times onto the stage and stay until the MC has stopped playing or it has been clicked on.
I.e
- after 5 seconds, "bonus" appears on stage.
- the 20 frames inside the MC play and then it disappears.
Anyone help would be appreciated.
.zimone
February 24th, 2004, 05:45 PM
put these instead of your 5 seconds
int(Math.random()*10);
that will give u random number =)
Kole
February 25th, 2004, 04:27 PM
umm
/*********
* Ready? *
*********/
if (_currentframe == 1)
{
/*****************
* First Chance 3/101 *
*****************/
if (random(100) >= 99)
{
/******************
* Second Chance 2/4 *
******************/
if (random(3) > 1)
{
play("bonus");
}
}
}
}
Or maybe instead of play bonus thing, setProperties(alpha, 100) or summet.
Have fun.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.