Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

#21 Taking body-parts off your character [Unity3d Game Engine tutorial]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
42,747
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 22, 2010

Welcome to part #21!
We'll be going over the basic approach of registering a hit and taking the right body-part away from our character.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • IMPORTANT:

    If you're getting the double hit problem (2 hits instead of one), move the "HealthControl.HITS = HealthControl.HITS + 1;" line into the lateupdate gotHit section. It will have a slight delay as it's in a late update but it will hopefully work.

    I think this is because with slower computers the ball spends more frames inside the character so the trigger is triggered multiple times, adding 2 hits.

    Please rate up so people can see!!!

  • lol spent the last half hour looking for the fix to the bug we didnt fix yet

see all

All Comments (209)

Sign In or Sign Up now to post a comment!
  • Great

  • @alexpalex9981 you get city engine and download it.

  • please help once when i get hit it will count as 2 hits then another time it will work perfectly then another time it will only delete 1 ball and no more and the script is the same exact thing the only reason i could think of is that i have windows. please help anyone

  • Did someone see that city in the background... How do he make one of those

  • Omg. I still have the double hit bug after an hour of trying to fix it, i gave up and just combined the hit switch statements with the lives. It works now. :D

  • y dont i respawn?

    

  • y does the turret miss me everytime????

  • 3:47 HITLWHAT? 

  • @TheOdeexs Thanks for the help!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more