I want to implement such a task. When the game starts, 3 video screensavers are played which can be skipped by pressing the spacebar. How do I understand this is implemented through the Videoplayer Node and script? And as I understand it, Godot only supports Ogv and Webm video formats. since he does not see mp4 and avi.

I am new to Godot, I study only in programming. Now I'm learning python to get a basic understanding of GDScript, which I don’t currently understand. I tried visual script, and I understood the approximate algorithm. And Native Script for those who write in C ++, C #, NIM, D, C, Python.

I also have a list of tasks that I want to do in my game. How do you think they can be implemented using: GDScript, Visaul Script or Python?

Thank you all in advance for your answers :)

Well one question at a time. Let's start with the title of your post. Like you said, Godot supports only ogv and webm for videos. Now I can't tell you exactly how you should implement it, because that would depend on the style of your game. All I can give is a layout of how it could be implemented the simplest way. It's much easier than you may think. I'm assuming that this all done in some sort of main menu scene.

  1. Create a VideoPlayer node that covers the entire screen, and give it your video. Hide it as well.
  2. Add a Timer node that is set to autoplay and one_shot. The amount of time you want it to wait will be how long till the screensaver shows up.
  3. Connect the finished signal of the video player to the scripted node you want to manage it. In the function that's connected to it, tell it to hide and stop the video player, and to play the timer.
  4. Connect the timeout signal of the timer to the scripted node, and in the connected function, tell it to show and play the video player.
  5. Inside the _input function in the scripted node (make one if you don't have one), call the connected finished function if the key for exiting the screensaver is pressed.

And that's it in its simplest form. You can add on to this if you want, like you can add a more sophisticated transition between the screensaver and the main menu.

Also, welcome to the forums! Enjoy your stay. :)

@SIsilicon28 said: Thank you for telling us in detail how to do this. Thank you I will continue to write my Nubian questions further.

2 years later

That's a great question. I have been looking for a forum like that. I am also new to Godot, and I am trying to understand how to implement it. From what I understood, it depends on the video game. But I still mess up. I wanted to come back to the old days when I used to play for hours. I have been saving money just to get good equipment to experience the best experience. I started making money through cash app games. It might sound weird or stupid, but at least now I have my own money to spoil myself hehe

9 months later