What is wrong with this code ?
Hereunder is he health bar code I have for my units (a green bar floating above the units - RTS style). The problem is that the bar does not stick to the unit (or move together with it). In the second...
View ArticleSolutions for iOs camera body tracking?
Was wondering if anyone has had success with body tracking or interaction with the live camera feed from an iOs device. I am looking for interaction like this http://www.tadamiplayground.com/. I have...
View ArticleBoncy on Jump Enemy heads
Hello guys, I'm doing a game, and I want to make the player jump again when it jump on a enemy. Like the image below![alt text][1] [1]: /storage/temp/11717-boncy.png I made this code to do this, but I...
View ArticleTrying to check what anim clip is currently running on object
I have an object with several animations attached to it in the animator. I'm setting up the flow, and things are going good, but I need set a variable based on what animation is playing, or a way to...
View Articlehow do you script between single shot and full auto?
so far i'm making a fps game with a friend just for fun and my friend made a revolver first.... i put in the script "Getbuttondown" which makes it shoot with every click rather than holding it down.......
View ArticleC# - Using Transform to move ignores Colliders?
So I'm new to scripting and was using the code below to move my player character which is a cube. using UnityEngine; using System.Collections; public class Player : MonoBehaviour { public float...
View ArticleTesting x value when using transform.translate
I have a cube which I move using transform.Translate like this: transform.Translate(rate * Time.deltaTime,0,0); I want to detect when x is a **exactly** specific value (for example, 10) but doing this...
View ArticleHow to make a variable it's original value?
I made a script that counts the number of times and object collides with it and when it reaches 0, the object is destroyed and later teleported to another location. Here is the script: var lives = 5;...
View ArticleColors in Hierarchy
When I adjust and save my Max file outside of Unity then the max file turns pink in the hierarchy because the original file has changed. This never was a problem before because I could reimport the...
View ArticleHow to add a sound when enemy gets a certain distance from me?
How to add a sound when enemy get a certain distance from me? The title says it all. Please tell me.
View ArticleHow do I make objects disappear as they are touched?
I am trying to create a situation where I use game objects (arrows) to lead the user along a path, but I want the arrows to disappear once the user reaches them. I'm really really REALLY new to...
View ArticleCustom character rigging
Hello, I've been thinking about buying this 3D model from TurboSquid ( http://www.turbosquid.com/3d-models/maya-workman-rigged/672475 ), and I'm wondering if it's possible to use it in Unity, as well...
View ArticleEnergy-Shield Animation
Hey! I am trying to build an animation for an energy-shield. My idea: Particles like smoke or something else spread on the surface of a collider or object I set. How can I realize this?
View ArticleCollision details
How can I find out where an object collides with another on? I mean the points of contact...
View ArticleClimbing a tree
Hi, I have an idea to make a game where players can climb on trees and collect gems. But how can I make this possible?. When player collides with tree surface I want him to stick to the surface of the...
View ArticleGUI To change with screen resolution?
Before i ask my question, i would sincerely apologize for my bad grammar. English is not my native language:-) My question is almost completely revealed in the Titel. I would like to know, how i could...
View Articledetecting rigidbody collsion with no extra script
Hello All. I am interested into accessing collision status of rigidbody with no extra script attached onto it, and which is not working with event. I am currently having something theorically like this...
View ArticleHow clean the level before loading another one?
Hi, I have a problem, I'm making a game where the level is generated randomly whenever the player plays a new game (like Diablo II), when the player dies the application loads another level in order to...
View ArticleUsing async WebRequest GetResponse
*Disclaimer*: This is a **friggin' really complicated question**. Probably what I wasted the most time out of anything I've ever done with Unity 3D in the past 5 years or so. And I'm still stuck...
View ArticleDeactivate all objects in a layer
Hi - when my player hits the first collider, I want all the objects in one layer to be activated. But when the player hits a second collider I want all the objects in this same layer to be destroyed...
View Article