Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

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

  • #1, by nerd 7 years ago Zitieren
    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?
  • #2, by afrlme 7 years ago Zitieren
    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.
  • #3, by stothew 7 years ago Zitieren
    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.
  • #4, by nerd 7 years ago Zitieren
    thank you I m gonna check the links