[solved] Alpha Color for increasing Transparency

Creator97Creator97 Member Posts: 140
edited January 2015 in Working with GS (Mac)

I want my actor to slowly getting transparent to invisible.
I dragged in a timer and selected every 0,1 seconds.
In this timer I dragged Change Attribute: self.Color.Alpha to self.Color.Alpha -0,01

The problem is that it doesn't work. (Do I just don't see it because the Preview can't display this stuff but it will be visible on my target device?!) The only thing that works is Change Attribute: self.Color.Alpha to self.Color.Alpha -1 but that's not very useful.

Is there another way or did I do something wrong?

Best Answer

Answers

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2015

    @Creator97 said:
    I want my actor to slowly getting transparent to invisible.
    I dragged in a timer and selected every 0,1 seconds.
    In this timer I dragged Change Attribute: self.Color.Alpha to self.Color.Alpha -0,01

    This should work just fine, maybe you have it set up wrong ?

    @Creator97 said:
    Is there another way or did I do something wrong?

    Interpolate alpha to 0.

  • Creator97Creator97 Member Posts: 140

    Interpolate does work and it's useful but please try exactly what I said and you will see it does not work or I am again the dumbest person alive on planet. (That's how I always feel after my questions gets answered.)

  • SocksSocks London, UK.Member Posts: 12,822

    @Creator97 said:
    . . .please try exactly what I said and you will see it does not work . . .

    Reduce alpha by 0.01 every 0.1 seconds . . . . works just fine, you'd probably just set it up wrong.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2015

    It's not a question of being dumb... it's a question of making mistakes. It's easy to make small mistakes in GameSalad* such as typing in an attribute name instead of selecting it from the attribute browser, forgetting that you unlocked an actor in the scene and are therefore using an instance with different rules from the prototype, forgetting that you created an attribute as an integer but are trying to give it real values such as 0.546, etc., etc., etc. Believe me when I say we've all been there. I don't think it's possible to use GameSalad for an extended amount of time without making tons of mistakes.

    But enough of the pep talk! Here's a demo.

    *This, by the way, is why people like @Socks and myself are constantly clamoring for everyone to post their actual rules, screenshots, project files, etc. It's much easier to figure out why something doesn't work when you can _see_ the mistake. Just guessing about possible causes doesn't often get us closer to a solution.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Creator97Creator97 Member Posts: 140

    What can I say true true true. I didn't want to post a screenshot or a whole project because it was too short to make something wrong. I THOUGHT. I checked your file and it WORKED however life is short I will move on with interpolate. :wink: (It has more options.)
    I appreciate your work here for all game salad members.

Sign In or Register to comment.