Fade to invisible

IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
edited November -1 in Working with GS (Mac)
Hello,
Is there a way to make an actor fading to invisible after touching? It should smoothly become invisible.

Thank you.

Comments

  • EastboundEastbound Member, BASIC Posts: 1,074
    Yes, interpolate the actor's alpha attribute to 0.
  • iPhoneDevForMeiPhoneDevForMe Member Posts: 362
    To further what eastbound said, set up a rule inside the actor like so:

    -Rule: When actor receives event touch is pressed
    -- Interpolate self.alpha to 0

    Here you can set the duration which will determine how long you want it to take to fade out. A good starting point would be 1 second. Hope this helps!

    -Kyle
  • design219design219 Member Posts: 2,273
    And if you don't plan to fade it back up, it's a good idea to put a timer set for just a smidge longer than the fade out with a "destroy this actor" behavior.

    _________________________________

    HAPPY NOSE JOB!: Nesen Probe is on the App Store. If anyone want's to try it out, codes are still available near the end of this thread: http://gamesalad.com/forums/topic.php?id=8097
  • IsabelleKIsabelleK Member, Sous Chef Posts: 2,807
    Thank you very much for help :)
  • daverennerdaverenner Member Posts: 133
    I used around 4 timers. They interpolated the alpha and moved the object -y. So as its fading away, it is also sliding down. Cool little effect.
Sign In or Register to comment.