replacing the "after" timer...

chaleychaley Member, PRO Posts: 226
edited November -1 in Working with GS (Mac)
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?

Comments

  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    I thought you hated all that optimisation stuff? ;)

    There are a couple methods here:

    http://gamesalad.com/forums/topic.php?id=31005

    Shaz
    -------------
    -------
    image
    "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
  • POMPOM Member Posts: 2,599
    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

    Roy.
  • POMPOM Member Posts: 2,599
    tshirtbooth said:
    Hey there,

    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 !

    Finish.

    Cheers.
    Roy.
  • chaleychaley Member, PRO Posts: 226
    HoneyTribeStudios said:
    I thought you hated all that optimisation stuff? ;)

    Ha! I suppose I deserved that one. :)

    Thanks for all the responses guys. I'll go try & plug them in.
Sign In or Register to comment.