Quantcast
Channel: Questions in topic: "die"
Browsing all 115 articles
Browse latest View live
↧

Die Function Help With C#

Hi! :D I need help with a Script With DIE Function. So when the Health reach 0, it destroys itself. I tried Different ways to do it. But it seems to not work :( Any Ideas? **Script:** using...

View Article


Photon Network Health Script

Hi, I am stuck on how to make a player health script in PhotonCloud, what i want it to do, is when the player's health is zero, the person that kill him get 10 points, and the player gets "Destroyed"...

View Article


Kill the Player?

I made this script, but I cant seem to figure out how to make him die. I would like the scene to reset when his health hits 0. Here is the script: using UnityEngine; using System.Collections; public...

View Article

Player taking damage on collision. Can't get the script to work!?

var health = 50; var damage = 10; var Die = 0; function ApplyDamage (damage : int) { health -= damage; if(health <= 0) { Die(); } function Die(); { //Die and or Respawn }; } ***Error:***...

View Article

How do you make a character die?

I have a "die animation" but i'm not sure how to make it work? I don't have a scooby how to work Unity really so i'd a[ppreciate some help! :) cheeeers

View Article


Character disappears when dies.

My character just disappears when he dies, i was wondering how to play the "die animation" when he dies instead of just disappearing? Any help would be fab thanks! :) The code i have is: function...

View Article

how to make it die and make it permanent(true)?

**how to make a player die at health 0 ?** **how to make (visible) to be permanent (true)** I have scripts ... and the script are still many bugs .. (did not die at health 0) and other I want to change...

View Article

How do i make zombies?

Hello World I need some help with scripting a zombie i want it to be like the 3rd person but walks like a zombie and follow you and can attack you and you can die but im kinda new and have like no idea...

View Article


Mario first person game, help?

Hello I am making a Super Mario Bros. 3d in First Person. And I need help on making the enemies, when I touch them I lose a life, and if hit them on the head they die. Here's the video to show you the...

View Article


How to make player lose health every 2 seconds he is in a trigger?

Thanks in advance, this simple thing confuses me to much.

View Article

How do I respawn my character after I die?

I am making a game in which my main character is a PlayerCar and once a demon hits it, it "dies" and will respawn at the starting point. I have tried all kinds of scripts but it doesnt work and when I...

View Article

Adding a "Die-Event" to my Enemy-Script with OnCollisionEnter

I have an EnemyScript, that lets my animated Enemy target and chase the player from certain distances and returns to a set Startpoint, if the Playerdistance is to high. Everything works fine(more or...

View Article

How to stop camera from moving when the player dies (2D)?

hi guys, Maybe a noob question but when my player dies it falls backwards. My camera keeps track of the player so it moves with it. How can i let it stop moving when de player dies. (My game is...

View Article


player death sound not playing

i got my hurt sound to work when ever i come into contact with a spike but am not really sure why my death sound is not working public class playerHealth : MonoBehaviour { // declareing health...

View Article

Animation die

hello, im new to unity3d and im having trouble with the "die" animation. i can't seem to get it work. Here is my script: public int health = 100; public TextMesh tm; public AnimationClip dead; void...

View Article


When I run game in device player velocity cannot zero when die in unity

In my unity2D game run in device so player velocity set not zero when collide with ground. void OnCollisionEnter2D(Collision2D target) { if (target.gameObject.tag=="Ground"){ die(); } } void die() { if...

View Article

How do I stop the enemy ai from following the player after it dies on unity3d...

When I shoot the enemy ai the animation plays . But the problem is that the enemy ai follow the player after it dies . Here is the move and attack script : using UnityEngine; using System.Collections;...

View Article


How do I disable enemy ai the script after enemy ai dies

I need to disable the script when the enemy ai die.Because what is going on is the enemy ai is follow the player after and before it dies . Here is the enemy ai attack, idle , and move script : using...

View Article

Position Calculation after player dies

I got Stuck Help me . In game player Car has weapons . When it destroys opponent vehicle is no more position calculation using WayPionts occur . I get error of reference execption . (...

View Article

code so if 1 enemy isnt killed every 4 seconds player dies?

how do I code it so if 1 enemy isn't killed at least every 4 seconds the player dies? not sure if this is right code to put here but this script is on all the enemies enemies are instantiated every...

View Article
Browsing all 115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>