Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Jack Eaves · Apr 29, 2010 at 01:37 PM · triggersmoviecutscene

How to trigger a cutscene movie?

Hi there,

I have another question that would be a great help if answered.

Currently i have a trigger that when my player moves into a hidden object a new scene is loaded, heres the code for that:

var 1;

function OnTriggerEnter (other : Collider) {

if (other.gameObject.CompareTag("Player")) {
    Application.LoadLevel(1);
}

}

However i would like a cutscene (a simple MOV file) to play full screen after the player has triggered the event but before they have entered this new level.` (An example of this is a cutscene of a boss crashing through trees and arriving at your location, in this new scene you will need to fight this boss)

Also, if i'm not pushing it, i would like to know how to get a MOV file to play before the game is loaded, for example an intro cutscene.

Thanks, any help would be greatly appreciated!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by bowditch · Apr 29, 2010 at 03:01 PM

You can create a new scene (for Application.LoadLevel) and execute this MovieTexture function on Load:

function Start () {
    renderer.material.mainTexture.Play ();
}

Scripting Reference

To start loading the level in the background, use the Application.LoadLevelAsync function

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jack Eaves · Apr 29, 2010 at 03:10 PM 0
Share

Thank you! I shall try this out now.

avatar image Jack Eaves · Apr 29, 2010 at 03:33 PM 0
Share

Damn. I now have a problem - i don't have Unity pro, would be great if you could help me over at my new question: http://answers.unity3d.com/questions/9030/movie-playback-any-way-to-get-around-not-having-unity-pro would be great, thanks!

avatar image Naisam · Mar 29, 2014 at 04:09 AM 0
Share

Then after finishing the cutscene how to go to the previous scene???

avatar image
0

Answer by logging_out · Aug 31, 2010 at 03:00 PM

If your using Unity Indie you could do this. Duplicate your scene with the boss battle. Remove all scripts (at least ones that control the player and the boss and any other AI). Now you could recreate your .mov file by simply redoing the animation in Unity. Make sure the main camera has an animation to look at what you want it to look at. Then convert the sound of the .mov file into a .wav file. Add an audio source to your main camera and add the .wav file as the sound you want played. Then you would need to add a script that would loadlevel(1) when the animation is finished. I can't help you much there as I'm not very experienced with code. But maybe you'll know how to do this.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

How do I make this small somewhat cutscene? 1 Answer

Movie cutscene how to? 5 Answers

movies in unity free ? 2 Answers

Opening Movie / Cutscene 1 Answer

Adding Cut scenes 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges