changeable timer

CoIinCoIin Member Posts: 197
edited November -1 in Working with GS (Mac)
One of the timer options lets you set the delay to a game attribute. When you do that the timer does the actions every n seconds, where n is taken from the game attribute.

What doesn't seem to happen though is that next time around it doesn't look at the game attribute, it continues to use the initial value.

How can I have a decreasing delay? I want something to happen after one second at the start of the scene, but then happen slightly quicker each time. I thought that setting the timer to a game attribute and then reducing the value of that attribute would do it, but it doesn't.

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Hello Colin,
    This wiki how to may answer your question.
    http://gamesalad.com/wiki/how_tos:gsc_variable_timer_speed
  • CoIinCoIin Member Posts: 197
    Thanks, that got me on the right lines.

    Is there a list somewhere of all of the attributes you can type in, that don't appear on the expression menus?
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    When you push the little 'e' like button it brings you to the expression editor and you select attributes from there. See them by pushing the rounded corner what square with the black triangle pointing down.
  • CoIinCoIin Member Posts: 197
    You do realize that I couldn't have got very far if I didn't already know where to find the attributes in the expression editor!

    I was asking for a list of attributes that are not in the expression editor, like timer.currentInterval and timer.newInterval for example. Unless they are in there, and I didn't know which menu to find them?
Sign In or Register to comment.