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 zbginji · Mar 07, 2011 at 05:33 PM · gameobjectcharacterinteraction

Slowing time to key prompt

I am a beginner with Unity 3D with minimal experience. I have a game concept and I am trying to figure out the ways to make my ideas work.

What I will be doing:

In this situation I would to have the player character run towards a railing in order to vault over it. A particular key being pressed will result in vaulting the railing. When the player character reaches a certain close distance from the railing I want time to slow (maybe even a noise or something as indication) for a second or so for the user to hit the button corresponding with the vaulting action.

What I would like to know: How, if not to much of a hassle, would one get "time to slow down" for the button prompting and return to normal speed and lead into the resulting animation for the vaulting of the railing?

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

· Add your reply
  • Sort: 
avatar image
0

Answer by by0log1c · Mar 07, 2011 at 05:41 PM

If you want the whole game time to slow down, set Time.timeScale to whatever speed you like(0-99.99). Default is 1.

If you just want, let's say, the character to slow down, you'll have to make your own speedFactor= ~1; variable then multiply any time-related movement by your private speedFactor.

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 zbginji · Mar 07, 2011 at 05:44 PM 0
Share

Thank you for the fast response. I figured it was simple, but I want to know what I am getting into with this project idea. Are their any issues with slowing down the game like that? Do you think character slowing for the situation described would be more effective personally, or would whole game temporary slow down be better?

avatar image by0log1c · Mar 07, 2011 at 05:53 PM 0
Share

It all depends on the effect you want to obtain. If you want to make a bullet-time a la $$anonymous$$atrix for a temporary moment then Time.timeScale is the way to go. I use it every now and then and never had any problem yet. AFAI$$anonymous$$, both are viable. Private speedFactor allow for more possibilities but are more hassle to set and regulate.

avatar image zbginji · Mar 07, 2011 at 06:58 PM 0
Share

Thank you very much. You gave me great insight into how to handle my project idea. Being so new I need points to look into in the formation of my game.

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

Character/Object Interactivity 0 Answers

Character - object interaction 1 Answer

Syncing a Seperate Object's Position and Animation with a Playable Character 1 Answer

Destroying all enemy characters after the level is over 4 Answers

Replacing A GameObject 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