How yo make a "timer every" bucle but start in second zero?

RubiyoooRubiyooo Member Posts: 163
edited June 2012 in Working with GS (Mac)
Hi guys i am making a bucle with:

TIMER
EVERY: 10 seconds
------------
DO ANYTHING
------------

But i want to start in second 0 to.
No, to wait 10 seconds.

Any idea?

Is an actor that move to original position every 10 seconds.

Answers

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited June 2012

    Hi @Rubiyoo

    Just make the "do anything" behaviour(s) first, before the timer ones.

    For instance:

    Play Sound soundeffect
    Timer: every 10 seconds
    Play Sound sound effect

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • RubiyoooRubiyooo Member Posts: 163
    Hi @Rubiyoo

    Just make the "do anything" behaviour(s) first, before the timer.

    For instance:

    Play Sound soundeffect
    Timer: every 10 seconds
    Play Sound sound effect

    Ok thanks.

    I am trying to do a text with several texts in cells of a hola table
    but then when i want after 10 seconds the actor starts in the original position.

    The text change but continuos moving in the same position :o

    image

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    OK, I think I see what you're after; so try the following:

    Change Attribute self.Position.X to 240
    Change Attribute self.Position.Y to -275
    Timer: After 1 second
    Move
    Change attribute game.zero to game.zero+1
    Display Text
    ---the following to put the actor back into its original position:
    Timer (?) After ? seconds?
    Change Attribute self.Position.X to --its original position
    Change Attribute self.Position.Y to --its original position

    Timer Every 10 seconds
    Change Attribute self.Position.X to 240
    Change Attribute self.Position.Y to -275
    Timer: After 1 second
    Move
    Change attribute game.zero to game.zero+1
    Display Text
    ---the following to put the actor back into its original position:
    Timer (?) After ? seconds?
    Change Attribute self.Position.X to --its original position
    Change Attribute self.Position.Y to --its original position

    I hope that sorts it for you...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.