Death screen on trigger enter?
Hi all, so I would like to add a death screen on a trigger enter. Figured it would work with 'isdead = true' ? I then want it to fade into blackness and show 'You died' I already have checkpoints that...
View ArticleHow do i stop player to move when dead
Hi. Does anyone know to stop player from moving and shooting? Here's my script for my health bar: var curHealth = 300; var healthTexture : Texture2D; var explode:Transform; var canMove = true; function...
View ArticleKill player when hit Groung (JavaScript)
Well, i'm making an FPS the map is like a roof, so when you fall and hit the ground, you die, i tried lot's of methods i found here in Unity Answers but none of them worked, so, basicly, when I hit the...
View ArticleHow to make player lose health every 2 seconds he is in a trigger?
Thanks in advance, this simple thing confuses me to much.
View ArticleHow 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 ArticleAdding 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 ArticleHow 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 Articleplayer 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 ArticleAnimation 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 ArticleWhen 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 ArticleHow 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 ArticleHow 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 ArticlePosition 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 Articlecode 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 Articlecode 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 ArticleRestricted area for objects
Hi there peeps :) Kind of stuck on a script / activity ... the 2D game I am working on has good and bad Footballs flying about where if good one hits you ... you get a point but if the bad one hits you...
View Articlemultiplayer die and respawn
i am trying to make a multiplayer team deathmatch game but i have a problem. when player other then host died the the player still can use the playercontrol and player shoot that i disable . but it...
View ArticleHow to make the player die when health = 0?
How to make the player die when health = 0?
View ArticleAsset spit fire but is no longer working, but when i check the backups it...
I have an enemy that spits fire but it's not killing the player. ive checked my backups and it is working perfectly on them. I have compared the backups to the current version and everything is in the...
View ArticleMy GameObject refrence in my script keeps resetting if i die
If i die in my game i reload the scene to retry but my refrence in my script keeps resetting if i compete the level and i dont die then it works how do i fix this?
View ArticleReturning to main menu
After i die in my game, I return to main menu BUT the cursor doesn't appear. I have added a hide cursor script that hides the cursor during game play but it seems to be applied to the menu as well Hide...
View ArticleWhy will my enemy not die?
In my simple game, I have two enemies. One has a health value of 1, and the other a health value of 2. When a collision is detected a take damage function is called which takes 1 away from the health...
View ArticleWhen more than 1 enemy they cant die
So I'm trying to make an enemy but when there are 2 enemies when the first one dies the second one just go in minus in health and I just can't seem to fix it can anyone help me? using...
View ArticleScene not restarting after player death
In my game I would like to restart the scene once my player loses his health, so far he dies and the particle effects show but the scene doesn't restart. Could someone show me what I am doing wrong,...
View ArticleHow do I get my character to collide with an object, he dies, and respawnee...
I'm making a 2d game but I can't get my character to die, help
View ArticleWhen I start my fps game , get killed immediately without an enemy being around.
Hello! When I start my fps game ,I get killed immediately without an enemy being around. The enemy is in a direction and I am in another one . I have made 2 levels for the game , I copied level 1 to be...
View Articlehow to take health/hearth from player when colliding with an object?
I'm working on a 2d sidescrolling shooter, but I can't figure out how to take damage from the player when hitting something (a projectile or an enemy). I have a 4 heart health system and if the player...
View ArticleI am making a 3d puzzle game and I need help
I have a die script and a teleport and a leaderboard script I have not tested yet so I need to make sure they will work and my kill and teleport scripts are very simalar so here is my kill script...
View ArticlePlay animation only if its standing on the ground
I am creating a melee game, 1vs1 mode. When the player has <= 0 health, he gets disabled and a death animation gets played. But the problem is: If my player jumps, then gets a deadly hit, he dies...
View Article