Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

SonEvil

Member
  • Content Count

    53
  • Joined

  • Last visited

Community Reputation

0 Neutral

About SonEvil

  • Rank
    Member
  • Birthday 12/16/1995

Profile Information

  • Gender
    Male
  • Location:
    Viet Nam
  • Interests
    Games
  1. I'm asking for help make a sword is like in the video below : in time 6:16 ! please check https://www.youtube.com/watch?v=1d59Y452lMI&list=PLEYTUxJ9C4F6SFe3tlJ1jo6sUZx-sK6qT&index=33
  2. Yeah :v it is VR games combine with augmented reality ( AR ) .... for mobile
  3. I move the sword in game with my hand in real life ! so I need the sword always damage to each touches enemy, it will damage health of enemy ? maybe ?
  4. thanks everyone ! I'm trying to create an augmented reality game with vuforia SDK ! and I want to " image target " is the " sword ( knife ) " every time I moved it to the enemy, damage to enemy :v I do not want to work with a certain button, so may cause damage , 1s second touch on the enemy to damage 10 health ... ? sorry i used google trans
  5. as the title ! I want to make a sword always damage to the enemy when touching them ... someone who knows! please help me ...... EnemyHealth script below: var Health = 100; var deadReplacement : Rigidbody; var GOPos : GameObject; function ApplyDamage (TheDamage : float) { if (Health <= 0.0) return; // Apply damage Health -= TheDamage; // Are we dead? if (Health <= 0) Replace(); } function Replace() { // If we have a dead barrel then replace ourselves with it! if (deadReplacement) { var dead : Rigidbody = Instantiate(deadReplacement, GOPos.transform.position, GOPos.transform.rotation); // For better effect we assign the same velocity to the exploded barrel dead.rigidbody.velocity = rigidbody.velocity; dead.angularVelocity = rigidbody.angularVelocity; } // Destroy ourselves Destroy(gameObject); }
  6. instead of declining health bar, enemy to decline @@
  7. I put the script on to the Enemy Object, and drag objects health bar into place, but when the game health bar does not work, enemy be long out, and each time damage to enemy it short again @@ as picture @@ sorry i used google translate :v
  8. Can you help me script editing ?? please ...
  9. Is it wrong? I put this script into the enemy, when the enemy damage also shrinking var HealthBar : Transform; private var MaxHealth : float = 100; private var MaxBar : float = 0.9; var Health : float = 100; function Update() { transform.localScale.x = (MaxBar) * (Health/MaxHealth); } function ApplyDamage (TheDamage : int) { Health -= TheDamage; if(Health <= 0) { Dead(); } } function Dead() { Destroy (gameObject); }
×
×
  • Create New...