How to make text appear for longer?

Hi! I just downloaded GameSalad, and its been easy to learn so far. However, I'm unable to figure out how to keep the text on the screen for longer than a second. I have tried using the timer attribute in which I set it 'for' 5 seconds. But somehow, that doesn't seem to work. I am using a mac.
Would really appreciate your help.

Best Answers

  • gyroscopegyroscope I am here.Posts: 6,598
    edited September 2014 Accepted Answer

    Hi, sure, try this:

    Timer: For 5 seconds run to completion
    Display Text YourText
    

    The above is so you don't have to wait a minute before it starts - so it's for a one-off. Then more rules to continue as you want:

    Rule: When gotext is true
    Timer: For 5 seconds run to completion
    Display Text yourText
    Timer: Timer After 5 seconds run to completion
    Change attribute gotext to false
    
    Timer: Every 60 seconds run to completion
    Change attribute gotext to true
    
  • zweg25zweg25 Posts: 738
    edited September 2014 Accepted Answer

    quick demo

    hope it helps

    zweg25

Answers

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

    Hi @payallal Are you showing a Display Text behaviour with a "When touch is pressed" rule?

    If so, either make it to show when touch is released, or, make a boolean called ShowText

    Rule: When touch is pressed
    Change Attribute showText to true

    Rule: When ShowText is true
    Display Text

    Or.. it could be that your actor showing the text is falling off the screen.... uncheck its Moveable attribute, see if that helps.

  • payallalpayallal Member Posts: 2

    Hi @gyroscope‌ ! Thanks for your answer. I'm just trying to get some text to flash on the screen every 60 seconds for a duration of about 5 seconds. The Moveable attribute is unchecked. Any suggestions?

  • payallalpayallal Member Posts: 2

    It worked! Thank you for helping!

  • zweg25zweg25 Member Posts: 738

    :smiley:

Sign In or Register to comment.