hi
how can i do a special preloader, that instead of a bar, it has balls, and depending on the percentage loaded, a new ball appears…?, it’s something similar to swift 3d’s page preloader
hi
how can i do a special preloader, that instead of a bar, it has balls, and depending on the percentage loaded, a new ball appears…?, it’s something similar to swift 3d’s page preloader
go check out the percent preloader tutorial at kirupa and add something like this:
[AS]
//if you want five balls to show, you’ll need to make 5 ball movie
//clips and name them ball1, ball2, etc. and put this action on
//each ball:
onClipEvent(load){
this._visible=false;
}
//then in your preloader code:
ballCount=bytes_total/5;
if(bytes_loaded>ballCount){
_root.ball1._visible=true;
}
if(bytes_loaded>(ballCount2)){
_root.ball2._visible=true;
}
if(bytes_loaded>(ballCount3)){
_root.ball3._visible=true;
}
//etc, etc, until you get to the last ball!!
[/AS]
That’s one of the many ways to do it. Have fun!
ok, and how can i add a “bonuce sound”, each time the “ball” hits the floor?
ok, i made it, but now i have a problem, since the balls have gravity, they will stop bonucing, and they will be in the “floor”, so, the sound will always play, how can i stop this,??
…here’s the fla
This seems to be a good fix. Go to the Ball MC and then go to frame 2. You will see the code I added.
that’s better…
but when i add more balls, the sound wont play, if the first one stops bonucing
:: Copyright KIRUPA 2024 //--