Menu
Login
Language
DE EN FR ES IT CZ
Back

How do I fade-in / fade-out frames inside an animation sequence?

  • #1, by nerd Thursday, 07. February 2019, 20:20 7 years ago Quote
    How do I fade-in / fade-out frames of an animation sequence?
    The first frame fade out while the second fade in, and so on for the rest of the sequence. Is there a way to do that inside the engine?

    Forum Fan

    147 Posts

  • #2, by afrlme Thursday, 07. February 2019, 22:08 7 years ago Quote
    not to my knowledge. animations just play forwards or backwards. you can also freeze/force frame ranges.

    you can control the opacity/visibility of the object that the animation is linked to, but it only works if the animation is assigned as the default animation in the properties tab of the scene object. if you were to manually play an animation with the play animation action part, then it wouldn't technically be linked to the scene object, thus you can't adjust the opacity of it.

    P.S: you could always create additional animations frames that have different opacity values, though it wouldn't be the best thing in terms of game optimization.

    Imperator

    7290 Posts

  • #3, by stothew Thursday, 07. February 2019, 23:19 7 years ago Quote
    mhh.. i would try it as AFRLme mentored.

    set the aninimation linked to an Object.
    set a condition to NOT display the Object.

    when need it
    change condition to display the Object

    freeze to the first frame with lua

    loop through the visabillity of the object

    freeze and loop the other way around at the end...
    and change the condition again to not display the Object.

    It feels not that well, but should work.

    Forum Fan

    127 Posts

  • #4, by nerd Sunday, 10. February 2019, 14:54 7 years ago Quote
    thank you I m gonna check the links

    Forum Fan

    147 Posts