Fade new image in?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
How can you fade in a different image on an actor? I want the actor's primary image to fade out while the secondary image fades in...Is this possible?

Comments

  • BlackbirdStudiosBlackbirdStudios Member Posts: 493
    Well yes and no. You can interpolate the self.color.alpha attribute to 0 if you want to fade out, and while the image alpha was at 0, your could fire a change image actor and then interpolate self.color.alpha back to 1.

    If you want one to fade out while another is fading in, you will need 2 actors.

    ________________________________________________________________________

    LIKE our NEW Facebook to see what we're up to! : Blackbird Studios Facebook Page
  • DrGlickertDrGlickert Member Posts: 1,135
    BlackbirdStudios said:
    Well yes and no. You can interpolate the self.color.alpha attribute to 0 if you want to fade out, and while the image alpha was at 0, your could fire a change image actor and then interpolate self.color.alpha back to 1.

    If you want one to fade out while another is fading in, you will need 2 actors.

    Yeah, thats what I was afraid of... Thanks.
  • StuartYStuartY Member Posts: 134
    Could do it with an animation, but unless the sprites are small this will wolf up memory.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    or you can have the new image behind the old one as a different actor and interpolate the fronts alpha to 0 (should start at 1) while interpolating the back images alpha to 1 (should start at 0)
Sign In or Register to comment.