Play Video Immediately Upon Entering Room

Started by Anralore, Fri 03/09/2021 16:56:55

Previous topic - Next topic

Anralore

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

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?

eri0o

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

Anralore

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.

SMF spam blocked by CleanTalk