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

  • #1, by nerdThursday, 07. February, 20:20 2 months ago
    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 AFRLmeThursday, 07. February, 22:08 2 months ago
    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

    6515 Posts

  • #3, by stothewThursday, 07. February, 23:19 2 months ago
    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

    122 Posts

  • #4, by nerdSunday, 10. February, 14:54 2 months ago
    thank you I m gonna check the links

    Forum Fan

    147 Posts

Write post