Level Intros/Cinematics

Hello everyone! :slight_smile:

Me and my friend are trying to make our first game, and we are trying to make a campaign. As you know, most games(or every) with a campaign starts with a cinematic/video at the start of the level.

Now we ask for some help to create this, so our texture launches/starts at a level load/scene.
We also for example need to make our intro for our team at beginning of our game/when launched, and I think we just need to stick the movie texture into our MAIN MENU SCENE, but how we do that, we don’t know…

Could also be nice with a skip button on SPACE, I have researched about this but havent found anything familiar what we need to create all this.

NOTE: I have Unity Pro! :slight_smile:

Regards,
Armin Pasalic.

Sorry, bump!:'/

Bump your post every 24+ hours, not 2.

No answer? :confused:
Bump… :frowning:

The lack of answers may be the perception that you haven’t researched particularly hard.

You can play a movie by adding a GUI Texture with a movie texture then call Play on it.

You can add a skip to your intro by checking for inputs and loading the next scene when space is pressed.

thats not the case. We can get all our videos to play and stuff, but we are looking for having an intro/video playing after launching our game. For example:

  • Player launches game

  • Our intro plays(about our company name/logo)

  • Player is now in the main menu and can either play Single Player or Multiplayer

  • Player launches Single Player, and chooses level 1. Before Level 1 starts, an cinematic starts with voice over telling abit of the story(Video)

If you can get all your videos to play and stuff, what’s the issue?

Make a scene called Intro which does nothing but play a movie then load Main Menu when its done. Same trick for your level 1 cinematic. (your main menu would load the cinematic scene, and the cinematic scene loads level 1)

Alternatively have the movies inside the Main Menu and Level 1 scenes, and disable input until they’re done. Personal preference really.

Then how can I get the level to load automatically after the Intro?

you know the length of the video? have a float variable with this length, subtract time.deltatime every frame (update), when its <0 you video is over and you load another scene. if user clicks/presses you stop playing video and load new scene. is that really so difficult?

and you should work on gameplay first. when you develop you dont want to always click you intro away. this stuff is added at the very last of the game (polishing).

Yes, cause we are beginners - Not super pro’s to scripting. We simply ask for help, not your conclusions on how ā€˜easy’ it is (:

Hey guys! I got it to work! (:

But I just need one thing… it’s a skip button!:confused:

Can any code make it so if the player clicks ā€œESCAPEā€ or ā€œSPACEā€ on the keyboard while watching the intro, it skips it/stops it.

Heres the code that I got now, but basically you can’t skip the intro:

someone cant know your level and knowledge. and your question requires no pro knowledge but is very basic imo. and i’m also a beginner so its not magic to get the infos you request.

i just wondered when you want to make a game and you have difficulties with such things you may have a hard time. when you dont even know how to gather input you should do some tutorials and readings about the things you want to do instead of directly jumping into development imo.

help can be offered in many ways. one is to advise the asking person to do a little research. one is to suggest another route. and my favourite one is to help the person to help him/herself. when you put every single problem into the forum you hardly learn a small fraction of the things you would learn when you would try to achieve things by yourself first. and when you have a ā€œrealā€ problem come to the forum.

your posts indicate that you have not really worked on the solution for your own before asking. if so you could have inserted your existing code as base for discussion and improvement. i’m sorry if i’m wrong but theres a huge difference between having a problem because of a misunderstanding or a missing peace of knowledge and having a problem because of beeing lazy and want to get done everything by others. i dont want to help the latter.

i gave you some hints to solve your problem. i wont write the whole script for you because this sort of help only enables and encourages you to ask everything you dont know in the forum. and discourtesy is a bad way to ask others for help anyway.

all people want to see is a little own effort. if you dont show it why should others make an effort for you?

Well I guess your right, and I did research about it and writed my own code with some multiple things(Message just above)

Unity - Scripting API: Input gives you all you need to query if a button or key is pressed.

and Application.LoadLevel(0); may load the intro level again depending on your scene order (defined in File - Build Settings).

I changed it! :slight_smile:

It was for testing purposes! :slight_smile:

I would have your first scene load (such as your main menu) then that button will use the code " Application.LoadLevel(intro); then your next scene would be called intro and then have a button or something and have the code if(Input.GetKeyDown(KeyCode.Esc)) { Application.LoadLevel(MainStage); } this will then load your next or main stage that you are working on. or you can look into once the video is done, then it will load the next level.

Thanks for your help/info! :slight_smile:

I only got two problems with the video/intro wich I don’t know how to fix:

  1. The video lags - it is rendered in 1080p - I can of course render it in 720p but I don’t know if it will fix the lag?

  2. The video doesnt fit as the video file when I’m viewing the video in Media Player - This occurs cause I added a cube and a camera. I put the texture onto the cube and had the scripts. It all worked!

But the problem with #2 is that we have a logo in this intro, and as I resized(the cube with the MOVIE TEXTURE on) it alot of times to just fit abit, the logo looks kinda fat in the right/left side. How can I make it so the video plays just like when I’m viewing it in Media player?

Any salutions? :slight_smile:

Bump… :confused:

Did you even read the Unity Docs on movie playing? It tells you exactly what the movies need to be rendered out at, including format, size limits etc. If you read it, you would answer your question about why your video is lagging. Go read now.