Expression Editor on Timer

JGary321JGary321 Member Posts: 1,246
edited November -1 in Working with GS (Mac)
Think it's possible to include the expression editor on the Timer? I've had several situations where it would be useful. Just a suggestion.

-JGary

Comments

  • KamazarKamazar Member Posts: 287
    You have no idea how much I've been wanting this! I need to use the random function along with spawning frequency.
  • JGary321JGary321 Member Posts: 1,246
    Any word from mods if this is a possible feature in the future? Or at least something that can be looked into?
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Looking into it.
  • JGary321JGary321 Member Posts: 1,246
    Thanks you rock.
  • jhaasjhaas Member Posts: 233
    Is there a bug with timer expressions? I can't seem to get it to work with a variable. Tried both integer and real types. ??
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    For the Timer, you need to restart the behavior to accept the change in the attribute.

    Here's how you restart it.
    Attributes: self.currentTimer and self.updateTimer

    Rule: if Attribute: self.currentTimer = self.updateTimer
    - Timer (using self.currentTimer for the variable.) Not Run to Completion
    Otherwise: Change Attribute: self.currentTimer = self.updateTimer

    This is needed because it might be bad to just have the Timer value change too quickly.
  • jhaasjhaas Member Posts: 233
    Sorry, I'm having trouble with your instructions. I need a little more clarification please. :)

    I'm trying to set a variable called wait to 7 and then I want the timer to run for wait seconds.
Sign In or Register to comment.