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

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


Restricted 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 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

Player 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 Article

My 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 Article


How 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 Article

When 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 Article

Unity 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 Article


Help. how to die by looking at an enemy.

Like slender. anyone knows? :o i am new at unity xD

View Article


PHP 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 Article

Make 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 Article

bullet 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 Article

Jumping 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 Article


how player die and respawn?

how my player die when he hit on an object and how he respawn after that to right position?

View Article

I 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 Article


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 Article

How 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 Article


Kill 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 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
Browsing all 115 articles
Browse latest View live


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