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 Chris 38 · Mar 28, 2011 at 12:53 PM · graphicsscreenregeneratehealth

Health Decrease

How can I make my FPS character lose health and when he loses health the screen will turn red on the sides to show he is hurt? Also how can he regenerate?

Comment
Add comment · Show 2
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 Jessy · Mar 28, 2011 at 01:16 PM 2
Share

We have not gotten to the level of technology yet where computers interact with us as if they were human beings. You need to think in more abstract logical and mathematical terms. A computer does not know "character", "lose", "health", "turn red", "the sides", or "regenerate". You are not ready to ask this question. Go work through some tutorials, on the Unity site and YouTube, and learn the basics of the language of Unity.

avatar image Michael 12 · Mar 28, 2011 at 01:45 PM 0
Share

Not sure if it's what yur looking for but have a look at this link http://answers.unity3d.com/questions/18306/shoot-the-player-effect/18310#18310

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by AngryOldMan · Mar 28, 2011 at 01:29 PM

You can do this by adding a script containing relevant syntax and properly declared variables. You can achieve this like, Jessy said, by learning about Unity first! Also READ THE FAQ before posting any more questions.

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
avatar image
0

Answer by Justin Warner · Mar 28, 2011 at 01:31 PM

Lol, as Jessy said, you need to actually learn how to code before you actually take up upon yourself to do this...

However, in general, you give the player a health, have it decrease when shot, then if it's less than 10, you start the whole screen red thing which can be rendered or w/e, then you have the health auto increase by one every second, and then have it so that if it's above 100, make it 100 again... Easy. Just learn how to code.

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

Adapting to iOS screen sizes ? 0 Answers

Regenerate health over time 2 Answers

Problem with flickering screen when changing resolution 0 Answers

How do i set health to regenerate over a specified range of time? 1 Answer

How to have good game graphics on many different screen resolutions? 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