Quantcast
Browsing all 115 articles
Browse latest View live

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

Die Effect

Hi. I have a basic game, the player dies and nothing interesting. To make it Interesting I was wondering of how to make a particle system appear after 0.1 seconds when the player dies. Like in GTA -...

View Article


Restart with GUIText

I have made a health for the player represented as GUI Text. So when the player reaches 0, the numbers go negative. so what I want for my health script to do is to load level 0 when the GUI Text...

View Article

3 times fell - you're dead

How can make a cube that fell of the platform and reached Y - 80 3 times and make it disappear off the scene (get destroyed). - Felipe

View Article

Dying Problem!

I have a perfect script that works perfectly fine but when the health of the player reaches 0 it loads the level again but then the scene its loaded as if the player is already dead so the level is...

View Article
Browsing all 115 articles
Browse latest View live