How do I make flashing text? Please help! So confused! :(

zCharleszCharles Member Posts: 5
edited October 2012 in Working with GS (Mac)
Hello,
i am brand new to game salad...
I have made an actor, which consists of text, and i want it to flash!!
I have tried all forums etc but i have never done game salad before and its so confusing :(
I would just like a long detailed tutorial on how to make a character flash.. ( Tutorial for dumb people )
It would help me sooo much..
I just want the character to flash every second..
Thanks,
Charles

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Ok do try this. In your text actor first. Create an integer attribute called flasher

    Now place timer
    Every 1 second run to completion checked
    --change attribute self.flasher to (self.flasher+1)%2

    Next make a new rule that is outside the timer

    When attribute self.flasher = 1
    --display text

    This should make the text come on and off. I'm not at my computer right now to double check but it should all be there.
  • zCharleszCharles Member Posts: 5
    Hey,
    i don't want to use a text from game salad..
    I have made my own text in cinema 4D which i want to use..
    I have made it into a character..
    I have done the first part, it is just the rule afterwards that needs tweaking
    Thanks
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Just use the interpolate behavior instead of display text as tenrdrmer said interpolate the alpha to 0 then in the otherwise section of the rule put another interpolate behavior and change the alpha back to 1.
  • zCharleszCharles Member Posts: 5
    Thanks, but it disappears and then doesn't come back?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You said you wanted text to flash not an image. All you have to do is basically the same thing but instead of display text interpolate the alpha to 1 and in the otherwise section make an interpolate back to 0
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi, @zCharles , and here's another way to do it:

    Make a boolean called Flash

    Rule: When Attribute scene.Flash is false
    Timer: After 1 seconds
    Change Attribute self.Color.Alpha to 0
    Change Attribute scene.Flash to true

    ................

    Rule: When Attribute scene.Flash is true
    Timer: After 1 seconds
    Change Attribute self.Color.Alpha to 1
    Change Attribute scene.Flash to false

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

  • famekraftsfamekrafts Member, BASIC Posts: 834
    edited October 2012
    I am having a similar problem.

    When I grab an actor I want a a particular tile to become alpha 100 and when released alpha 50

    when I use interpolate what values should I uses 0 to 100 or 0 to 1?

    if I constrain attribute even thats not working, I will try change attribute now and see how it goes.

    well its not working for some reason. I am using it on an image tile.

    edit: The interpolate method works great with 0 and 1 and o.5. Thanks
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    @wickedsunny 1 is the highest value possible for alpha. You figured it out but just wanted to make sure it was clear.
  • ElfizmElfizm Member Posts: 489
    Or you could just set up an animate behavior, change it so its 1 fps and but your text image in and then a blank image and make sure it's on loop.

    That way you don't need so many rules. Just my suggestion :)

    Elfizm
  • zCharleszCharles Member Posts: 5
    Working with game salad is soooo hard!! Eurgh!!
    My actor still doesn't flash, its ridiculous!!
    It might be because i am horrible with it,
    could you do a detailed description :(
    Thankss
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited October 2012
    To do 50% use .5. @tenrdrmer is there an echo in here? Lol.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2012
    Working with game salad is soooo hard!! Eurgh!!
    My actor still doesn't flash, its ridiculous!!
    It might be because i am horrible with it,
    could you do a detailed description :(
    Thankss
    I, for one, gave a detailed description, being a way to solve your problem; and other members gave other detailed ways to solve it for you too; not much else to say.

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

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Working with game salad is soooo hard!! Eurgh!!
    My actor still doesn't flash, its ridiculous!!
    It might be because i am horrible with it,
    could you do a detailed description :(
    Thankss
    If this problem is causing so much trouble I think you need to go and spend some time with the cookbook / YouTube videos. This is probably one of the most basic concepts in GS and one of the foundations you'll need to master to make bigger games.
Sign In or Register to comment.