I bought a template that uses a bunch of timers for a bunch of different events that are all set to the "after" mode. Does anyone know a safe / optimized way to replace those timers?
Shaz ------------- ------- "Honey Tribe is not only a remarkably endearing little game, but it's also incredibly addictive." Pocket Gamer "...a touch above the rest in the endless running genre" 148apps.com Say hi on Twitter Like us on Facebook Sound design and music service available: http://tiny.cc/MusicService www.HoneyTribeStudios.com
Sometimes i wonder.... This is a drag and drop engine , why cant GS make all this optimization backstage...... ?! Let us drag a simple timer behavior , but in the complier at your server replace this behaviour with a simple rule and attribute , should be easy.. oh well, optimization it is
The after timer is not so bad. Its the every timer you want to watch out for.
Since the after timer will stop checking once the time has past.
Hope that helps
cheers
"Every" timer is even simpler ! make a new attribute - call it "TIMER" - index - set its value to '0' ! make a rule: when attribute TIMER = self.time%(set what ever value you want) Do rules !
Comments
There are a couple methods here:
http://gamesalad.com/forums/topic.php?id=31005
Shaz
-------------
-------
"Honey Tribe is not only a remarkably endearing little game, but it's also incredibly addictive." Pocket Gamer
"...a touch above the rest in the endless running genre" 148apps.com
Say hi on Twitter
Like us on Facebook
Sound design and music service available: http://tiny.cc/MusicService
www.HoneyTribeStudios.com
This is a drag and drop engine , why cant GS make all this optimization backstage...... ?!
Let us drag a simple timer behavior , but in the complier at your server replace this behaviour with a simple rule and attribute , should be easy.. oh well, optimization it is
Roy.
make a new attribute - call it "TIMER" - index - set its value to '0' !
make a rule:
when attribute TIMER = self.time%(set what ever value you want)
Do rules !
Finish.
Cheers.
Roy.
Thanks for all the responses guys. I'll go try & plug them in.