Interpolate change image?

GamersRejoiceGamersRejoice Member Posts: 817
edited November -1 in Working with GS (Mac)
Like the title says, is it possible to use the change image behavior and have it interpolate so I could fade the new image in? Any ideas as to how I could do this without creating new actors if it isn't possible?

Comments

  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    Only way I can think of involves spawning a copy of the actor below, interpolating the top actor's alpha and then destroying it...
  • PhoticsPhotics Member Posts: 4,172
    GamersRejoice said:
    Like the title says, is it possible to use the change image behavior and have it interpolate so I could fade the new image in? Any ideas as to how I could do this without creating new actors if it isn't possible?

    I haven't tested this, but I'm thinking that you could make it like an animation.

    Create Actor Attribute
    Constrain self.image to picture-(self.counter).png

    Then, you can make self.counter a number... like frames in an animation.

    --------

    If the actor doesn't move, you can also try using particles. When the particle fades in, change the image underneath, and then stop the particle.
  • GamersRejoiceGamersRejoice Member Posts: 817
    Using a particle effect to switch an image, now there is an interesting idea. I'm going to have to play with that.
  • dre38wdre38w Member Posts: 79
    I'm trying to do this as well. Isn't there a method dealing with the "floor" feature? I've seen this used for changing images for scoring. I'm sure it can be used for Interpolating images as well?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    all the floor does is round a decimal to a whole number. its used for custom fonts in scoring becuase it needs a whole number to match with a image that has that whole number in the title.
  • dre38wdre38w Member Posts: 79
    Ooooh. I see. No wonder it wasn't working. haha Sorry about my lack of knowledge. So the particle method works? I'm going to try it out as well.
Sign In or Register to comment.