Let's say I had a lot of sprites that had to be active at certain points throughout the game. In the instances where the sprites aren't needed any longer, could I have something like this for all of the said sprites?;
when gf clicked forever if < [level] = [3] > // or whatever level the sprite is called into action execute actions here else stop script endFeedback much appreciated. Thank you for your time!
Last edited by Zparx (2012-02-13 15:23:00)
Offline
Yep. The less scripts are running, the faster the project will run.
Last edited by RedRocker227 (2012-02-13 15:22:48)
Offline
Zparx wrote:
Let's say I had a lot of sprites that had to be active at certain points throughout the game. In the instances where the sprites aren't needed any longer, could I have something like this for all of the said sprites?;
when gf clicked if < [level] = [3] > execute actions here else stop script end
put a forever statement around it, otherwise it would act once. There's more information about that particular script on a guide a made on the Help with Scripts section.
Offline