Heart Rate and Beat Monitor

The Heart Rate and Beat Monitor v2.0
by SketchWork Productions

Description

The Heart Rate and Beat Monitor is an easy to use script that will add the heart monitor to your games and projects. This C# script is very easy to use and can be implemented in just a few clicks. The script should also be compatible and performance friendly with all of the platforms supported by Unity3D.

1125383--42529--$Attack_25.jpg1125383--42530--$FlatLine_25.jpg1125383--42528--$FullScreenOnblack_25.jpg1125383--42527--$Corner_25.jpg

Features

  • Full support for Unity 3.5 and Unity 4+ (Free and Pro).
  • Use to show your players health and damage.
  • Control the heart rate.
  • Activate the “Flatline” when your player is dead.
  • Heart blip and monitor line fade out nicely.
  • Colour heart line depending on player health.
  • Full sound effects can be turned on if required.
  • Control the size and positioning.
  • Clean, short and simple C# code.
  • No external DLLs or external resources.
  • Full documentation included.
  • Fully documented examples.

Use the Heart Rate and Beat Monitor for your player health, but it exists in 3D space so you can also place it anywhere in your scene. A life support monitor for example.

Add that little something special to your projects and grab yourself a bargin with the Heart Rate and Beat Monitor.

Asset Store Link: “Get the Heart Rate and Beat Monitor”.

Video Demo

Video Demo 2

Version History

Version 2.0
Added support for Unity 4.5.
Added the ability to colour the heart rate line easily.
Added brand new custom inspector component.

Version 1.5
Added full support for Unity 3.5 and Unity 4+.
Updated support email details.

Version 1.4
Added heart beat sound effects.
Added flatline sound effect.
Added “Enable Sound” control.
Added “Heart Volume” control.

Version 1.3
Updated documentation to include mobile build optimisation notes.

Version 1.2
Updated documentation.

Version 1.1
Added full documentation.
Added code comments.

Version 1.0
Initial release.

Asset Store Link: “Get the Heart Rate and Beat Monitor”.

Does this have audio? Can you hear the heartbeat?

@kenlem: It doesn’t at the moment as I wasn’t sure if this would be annoying, but it is easy to do so I’ll add it to the next version with an option to turn it on and off.

Very interested but would love to see a video of it an action first.

@UnleadedGames: That’s not a problem. I’ll put up a couple of videos for you.

1 Like

How many drawcalls does this add?

This looks really nice! Cant wait to see a video of it.

I’m intrested too, but i need to see the video and some more details, like draw calls, how easy is to change it my way, a tutorial to add the asset…

“will that blood come too?”

@fholm
@fano_linux: Depending on what you set the heart rate to it will only add between 2 and 3 calls.

@Tapgames: Just looking at getting a video up soon for you to see it in action, but no unfortunately the blood doesn’t come with the package :slight_smile:

SketchWork: This makes it essentially useless for mobile tho, since 3 drawcalls (and also the “dot” I assume) is way to much to pay for such a small effect =(

@fholm: That does include the dot, but I’ll look at ways to maybe reduce this for mobile.

Bought and checked the source. You’re going to want to get rid of the call to instantiate for mobiles.

@kenlem: Thanks for the purchase and more importantly the feedback. I’ll look at adding some additional optimisations.

Thanks again.

Justin

@UnleadedGames
@Tapgames
@fano_linux: Added a demo video to the top post.

Package updated with some additional documentation.

Thank you for the video, would there be any reason this wouldn’t work in Unity 3.5.7 if I were to import it into Unity 4 then move it my Unity 3.5.7 project folder?

@UnleadedGames: There should be no reason at all. It only defaults to Unity 4 because that is what I exported it from, so should work perfectly :slight_smile:

I have added some mobile optimisation notes. For mobile users if you turn off the blip you can get the number of draw calls down to 1 to 2. I’m looking at getting this to just 1 for the next release for mobile users.

Have fun and happy new year everyone.

New version with full heart sound effects and flatline sound effect submitted to asset store. Waiting for approval :slight_smile:

Enjoy!

My only problem is that the rhythm strip is not a normal baseline, other than that its pretty cool. A heart beat monitor would show a P wave, QRS complex, and a T wave. Right now your player does not have a P wave, so no AV node depolarization. You also have a lot of noise or artifacts between the beats. The strip should be completely clean between beats, unless of course he has a heart block in which case he will need surgery or die.

Your normal sinus rhythm should look like this richacls.com

Dont forget, although your hear rate increases, there should be no change in the appearance of the lines. The only change would be that the beats would be closer together. Any variation in the beats would indicate a problem with the heart.