Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by logging_out · Jul 12, 2010 at 10:39 PM · cutscenelerpz3dplatformtutorial

Lerpz 3DPlatform Tutorial Cutscene2 help

I'm almost finished with the Lerpz 3DPlatform Tutorial, but my Cutscene2 isn't working. When I try to touch the spaceship I get this message:

NullReferenceException LevelStatus+LevelCompleted$13+$.MoveNext () (at Assets/Scripts/Misc/LevelStatus.js:63) ThirdPersonStatus:LevelCompleted() (at Assets/Scripts/Player/ThirdPersonStatus.js:121) HandleSpaceshipCollision:OnTriggerEnter(Collider) (at Assets/Scripts/Misc/HandleSpaceshipCollision.js:12)

Also the CutsceneCamera2 plays in the background of the game.

After some quick research I found that in my LevelStatus script on lines 63 and 64 there seems to be a problem with the coding. (It's the function to hide the player.) Here's What I have:

function LevelCompleted() 
{ 
 mainCamera.GetComponent(AudioListener).enabled = false; 
 levelCompletedCamera.active = true; 
 levelCompletedCamera.GetComponent(AudioListener).enabled = true; 
 playerLink.GetComponent(ThirdPersonController).SendMessage("HidePlayer"); 
 playerLink.transform.position+=Vector3.up*500.0; // just move him 500 units 

Which is exactly what they have. I triple checked this. I even copied and pasted the final code over my code. So I don't see the problem. Thanks to any help.

Comment
Add comment · Show 1
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 spinaljack · Jul 12, 2010 at 10:47 PM 1
Share

There's a null reference pointer on one of your scripts. It probably means something wasn't setup properly. I'd go back and check all the steps again and make sure there's no empty things in the inspector. Also take a look at the finished example to see where yours differs from theirs. Can't be more specific unless you give more details.

1 Reply

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

Answer by logging_out · Jul 19, 2010 at 04:03 PM

Ha. I've been such a fool. I forgot to change the Lerpz object name to Player. Apparently that was the problem. It works great now. :)

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

No one has followed this question yet.

Related Questions

Lerpz demo won't do cut scenes 1 Answer

3d platformer cut scenes 1 and 2 not working. 2 Answers

Lerpz 3d Platform Cutscene Camera 2 issue 0 Answers

Lerpz Cut scenes 1&2 problem 1 Answer

,Particle System - Throwing Effect 1 Answer


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