Forum rules - please read before posting.

Fade in Fade Out Bubbles Loop

Hi,

I have a bubbles animation that I would like to animate to fade in and fade out as my animation loops.

I have attached a sprite fader script to my root object containing my 5 bubbles, but am confused as to when I add the property in the animation timeline as whatever I do it does not work, I am not certain which property pertaining to the sprite fader script i should be choosing and then how i should be animating it (curves?).

I have looked through forum posts but only found a post where it seemed code was being added somewhere and again I was unsure where and how to add edit this?

Any ideas?

Thanks.

Comments

  • The Sprite Fader script will only be able to change the alpha value of the Sprite Renderer that's on the same object it's attached to.

    Rather than attaching 5 separate scripts to the bubbles, and controlling them all separately, it's better to simply record the fading in an animation.  Attach an Animator component to your root and animate them that way instead.  You can use the Object: Animate Action if you need to control the animation playback in-game.
  • I have an animator component attached and i am animating all their transform positions, but i do not know how to animate their fading in here? What component do i choose in the animator/
  • The alpha channel of the colour field.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.