Changing scenes in specific timing and Fading out Screen

Hello I need help for transition of fading in and out black when starting like a cutscene
and after the dialogue it will fade out and load the next scene level.

Hi @Drake_Aurin,

I don’t have an example in mind but one way to approach this:

  1. Use a PlayCanvas UI image element with full black color.

  2. Animate it’s opacity from 0.0 to 1.0 to fade in, and from 1.0 to 0.0 to fade out.

  3. Subscribe to the on complete tween event to know the exact moment the tween animation finishes to handle your scene transition.

This page includes some example tweens to get started: Using the Tween library | Learn PlayCanvas

1 Like