Scene transition effect while activate/deactivate object

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Scene transition effect while activate/deactivate object

Post by Ekta Bhutwala »

Hii..

I have one scene having multiple objects just like one house is having multiple rooms.

I want fade in/out transition effect when i switch between rooms.

Thanks.
User avatar
Tony Li
Posts: 21972
Joined: Thu Jul 18, 2013 1:27 pm

Re: Scene transition effect while activate/deactivate object

Post by Tony Li »

You can use a sequence with the Fade(stay) and Fade(in) commands. Example:

Code: Select all

Fade(stay)->Message(FadedOut);
MoveTo(Kitchen, Player)@Message(FadedOut);
Fade(in)@Message(FadedOut);
The sequence above does this:
  • Fades to black. When done, sends the message "FadedOut".
  • Waits for the message "FadedOut" and then moves the GameObject named Player to the position of the GameObject named Kitchen.
  • Waits for the message "FadedOut" and then fades in.
More info: Cutscene Sequence Tutorials, Sequencer Command Reference
Post Reply