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 /
This question was closed Feb 24, 2014 at 08:49 AM by serenefox for the following reason:

Other

avatar image
0
Question by serenefox · Feb 24, 2014 at 06:13 AM · infinite runnerget component

Infinite runner stop everything when player dies?

Hi,

I have been trying to figure this out for a while and can't seem to find anything on it.

I have a character that is basically running in place while platforms move through the visible screen. When the player dies I want all my animations to keep playing but I don't want the platforms(which are prefabs) to keep moving through the screen and under my player while the dying animation is playing. I also want my GUI to keep working too, so i figured i can't use timescale unless i can make certain things exempt from it.

I wan to avoid "GetComponent" in update which is what i have and it works right now but is probably heavy on performance. I am using "GetComponent" in update to check to see if my player has died form the script on my player. I have a the movement script on my platforms that just move the object to the left when it is pulled form the object pool.

Is it possible to make certain elements exempt from Timescale or is there another way to do this?

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

1 Reply

  • Sort: 
avatar image
0

Answer by iKatsuX3 · Feb 24, 2014 at 09:39 AM

I am nor expert but a simple programmer just like you. We require all kinds of help, So here is my opinion about your question...

Try learning GUI's or so called "User Interface" most gamers only see it as Pause,Resume,Exit buttons. Try combining Pause with a text saying "You Failed" or "You Died" that stops the scripts of the prefabs of the obstacles but not the background.

Oh, Forgot.. Here's a tip.. Maybe you already know about it. But, DON'T make the background and obstacles into one! Differentiate their scripts and make sure they have different scripting cause having the same scripts all over again would make lags more frequent. Don't ask for scripts from me... I'm just a simple game maker! :3

iKatsuX3

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

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Script inheiritence and finding a certain component 1 Answer

2d Endless Runner: Dynamically generating a multi-lane path 0 Answers

How to make the background follow the camera 5 Answers

Endless Runner world generation stops at certain point. 2 Answers

problem whit get component script JS 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