Interpolate images into others

RDRD Member Posts: 88
edited December 2011 in Working with GS (Mac)
Is there any way of interpolating - or fading - two images into each other?

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    1. Interpolate the Image's alpha:
    Actor
    - Interpolate self.Color.Alpha To: 0
    - Rule when Attribute: self.Color.Alpha = 0
    ---- changeAttribute: self.Image To: newImageName
    - Rule when Attribute: self.Image = newImage
    ---- Interpolate self.Color.Alpha To: 1
    2. Interpolate the Actor's size:
    Actor
    - Interpolate self.Size.Width To: 0
    - Interpolate self.Size.Height To: 0
    - Rule when Attribute: self.Size.Width ≤ 10
    ---- changeAttribute: self.Image To: newImageName
    - Rule when Attribute: self.Image = newImage
    ---- Interpolate self.Size.Width To: correctWidth
    ---- Interpolate self.Size.Height To: correctHeight
    3. Use a black maskActor to cover original image and fade its alpha from 0 to 1
    --trigger it with a sceneAttribute image or a timer or Rule condition
    --change the image when the mask alpha =1

    4. do an animationBehavior with the 2 images and set FPS to 1
    (you could get fancy and create a new graphic with the 1st image then layer over it the 2nd image at opacity 50% … then have a 3 image animation)

    MH
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I would actually interpolate the actor color to black then change the image and interpolate the color back to white.

    thats how the backgrounds change in this template for an example.



Sign In or Register to comment.