Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Anralore on Fri 03/09/2021 16:56:55

Title: Play Video Immediately Upon Entering Room
Post by: Anralore on Fri 03/09/2021 16:56:55
I want to have a video play showing the transition the character walk from one room to another.

I have this in the new room:

Code (ags) Select

function room_FirstLoad(){
  PlayVideo("New Videos/2II.ogv", eVideoSkipAnyKey, 0);
} // End of FirstLoad


But this just results in a fade to black, then fade in to showing the background of the second room, then cutting to the video. How do I skip the fade out, fade in and background image of room 2?
Title: Re: Play Video Immediately Upon Entering Room
Post by: eri0o on Fri 03/09/2021 17:46:07
Try using either SetScreenTransition or SetNextScreenTransition before using change room, selecting instant

https://adventuregamestudio.github.io/ags-manual/Globalfunctions_Screen.html#setnextscreentransition

Alternatively maybe change to a room, play the video, then change to the room you want
Title: Re: Play Video Immediately Upon Entering Room [Solved]
Post by: Anralore on Fri 03/09/2021 18:33:51
Quote from: eri0o on Fri 03/09/2021 17:46:07
Try using either SetScreenTransition or SetNextScreenTransition before using change room, selecting instant

https://adventuregamestudio.github.io/ags-manual/Globalfunctions_Screen.html#setnextscreentransition

Alternatively maybe change to a room, play the video, then change to the room you want

Thank you, it worked.