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 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 ArticleMario 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 ArticlePlayer Health Damage
Hi guys, I have this health script I created for my player, can any one show me how I could integrate damage and death when the player comes close to an enemy? This is the only thing not working in my...
View ArticleMy Player spawns 4 ragdolls when he dies!
So I have my player that can die when he either falls into lava or gets hit by the monsters, but strangely it spawns 4 ragdolls when he dies! There is only one ragdoll in the prefab that spawns when...
View ArticleHow to make death messages show at random?
I have a deathScript and need to know how to create different messages show at random once dead. Right now they go to console which is fine for now. What I need is a bit of script that will cause...
View ArticleWhen health is 0, character still lives
Hi all. I'm a total programing noob, and This script wont work. The idea is, when the health <= 0, he it should Destroy Object. However, nothing happens, and the Health counter simply goes negative,...
View ArticleUnity Engine GameObject error? help please
so some days ago I've been working on the AI, and it was working pretty well actually, now I was making random enemy spawner in random spawnpoints and I tried, I noticed that there was happenning a...
View ArticleHelp. how to die by looking at an enemy.
Like slender. anyone knows? :o i am new at unity xD
View ArticlePHP die/echo with value from table column...
So I am trying to retrieve data from my mySQL database through PHP. I don't know any better way to do this, so I am just simply using the PHP die(String); to return my variable from the table. I have...
View ArticleMake a Player Die on Collision { Urgent }
So basically Me and a few friends have been working on a Unity 3D project. We are nearing the End of our due date and we desperately need a direction to head in. Our game is a simple 3d game in which...
View Articlebullet damage problem
I wrote a collision and bullet damage script, bullet is tagged as bullet and both are rigid bodies plus both triggers are checked so i can't figure out why it isn't working? using UnityEngine; using...
View ArticleJumping sound not working after respawning
I have a jumping script attached to a player. It works until i die and respawn. Any help? i am using javascript #pragma strict function Update () { if(Input.GetKeyUp("space")) { if(!audio.isPlaying) {...
View Articlehow player die and respawn?
how my player die when he hit on an object and how he respawn after that to right position?
View ArticleI loose health after touched enemy and my script only displays the first...
How do I fix so that if my enemy just touched me and stays out I'll regenerate instead of dying. And I'm trying to fix my healthgui. Help please? [Note: It's an edited script from speed tutor's fading...
View ArticleDeath 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 Article