Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: The Man on November 11, 2014, 01:50:13 PM
-
Sorry if this has been asked before, but I couldn't find anything about it in the forum!
I'm using entities to play my videos because when I use Game.PlayTheora the quality of the video seems to decrease a lot (I really don't understand why!)
My question is: is there a way to skip videos that are played through an entity? I generally use a code similar to this:
var video = Scene.GetNode("video");
video.PlayTheora("name_of_the_video.ogv");
while (video.IsTheoraPlaying())
{
Sleep();
}
I'd be really grateful if someone could help me, because I'd hate to have to choose between having bad quality videos or unskippable videos!
-
I have not tried.
on "Keypress"
{
// ignore keypresses in the intro screen
if(Game.PlayTheora("name_of_the_video.ogv")) return;
// on Esc or F1 key
if(Keyboard.KeyCode==VK_ESCAPE)
{
return;
}