image flash when using interpolate! Help!

DigiChainDigiChain Member, PRO Posts: 1,288
edited November -1 in Working with GS (Mac)
I have a scene.

Within this you can press a button - and the images immediately change.

Some of the images are re-used and repositioned within the scene using 'interpolate' to change their position and sizes.
Other images (which are just background images) are either made visible or invisible by changing the selfcolour>alpha.

What i find is that the background images which don't change size or position update immediately.
But the images that have their size/position interpolated have a slight lag. Its very small - but is noticable.

Anybody know a way of preventing this? Or a trick to hide it somehow?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Digi-chain; Interpolate changes parameters over time, so I'm guessing, even if you've put 0 in the time, there's some processing by the behavior. Basically, if you want something to change instantly, then the Interpolate behavior isn't really the correct behavior to use.

    Either stick with changing alpha, and/or use Change Attribute Behaviors to change an actor's x, y position from off-screen perhaps, or to change size; that'll be instant as you want.

    Hope that helps.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • DigiChainDigiChain Member, PRO Posts: 1,288
    Spot on - thanks Gyro.

    The reason I'd used interpolate was because I'd unchecked the 'movable' option in the actor - and I thought I'd read that you could only move an actor when using 'interpolate' if you'd done this.

    But clearly not.
    My games looking so much better as a result. Cheers.
Sign In or Register to comment.