Answer by pad406
Hi, stumbled across your question when searching for the same problem myself. By trial and error I found that by setting the build quality higher, the spotlight works. Am working through the various...
View ArticleAnswer by pad406
You'll need to have a collider attached to the door object. Then attach a script to it which uses 2 functions: void OnMouseEnter() void OnMouseExit() in OnMouseEnter instantiate your text object if it...
View ArticleAnswer by pad406
I'v just finished implememting something similar in my game, but I allow the user to stop using their acceleration and let it build up again. They can only start using the accelerant when their 'tank'...
View ArticleAnswer by pad406
As an alternative, I came across this recently, works a treat [link text][1] [1]: http://answers.unity3d.com/questions/119918/transitions-between-changing-scenes.html
View ArticleAnswer by pad406
If I understand the question right you'll need to use WorldToScreenPoint to get a vector3 of the object and then use that. Vector3 objPos = WorldToScreenPoint(someObject.transform.position);...
View ArticleAnswer by pad406
Have a look at this, it'll give you some idea of the problem and possible workarounds [How do I return a value from a coroutine?][1] [1]:...
View ArticleAnswer by pad406
You're right about the coroutine but I think you have to split it into a new routine. So at your debug.log statement do this startcoroutine(myDelay()); Then your myDelay function as follows: //myDelay...
View ArticleAnswer by pad406
I'm pretty sure (fairly new to unity myself) that you have to set an object to the instantiate, like this myGameOb = (GameObject)Instantiate (skelePrefab, .........) Where myGameObj is a valid game object
View ArticleAnswer by pad406
I came from a business software background, had no Java, C#, 3D or unity experience, so it was (and is) a steep learning curve. But, the support forums are great, I generally browse them just to look...
View ArticleAnswer by pad406
Try this [http://wiki.unity3d.com/index.php?title=Server_Side_Highscores][1] [1]: http://wiki.unity3d.com/index.php?title=Server_Side_Highscores
View ArticleAnswer by pad406
Sorry, dont know if it's a bug or not. As an alternative you could use sendmessage or broadcastmessage
View ArticleAnswer by pad406
You could set a global boolean to true once one of them starts processing the loose life scenario, and everywhere there is a collision detected that could cause loss of life, first check if this is...
View ArticleAnswer by pad406
Update is called once every frame, so that could be anything from 30-100s times per second. You would need something in your logic to prevent reaching the code that tests if the end level...
View ArticleAnswer by pad406
Time.time the time since the game started. So unless you can get from level 1 to level 2 within 2 secs, you'll never see the message after level 1.
View ArticleAnswer by pad406
The server returns all the high scores as 1 big line of text, in your case hs_get.text. However each line is split by a new line character '\n' and each field within the line is split by a tab '\t'. So...
View ArticleAnswer by pad406
I think the simplest way is to create a function where you pass the direction that you don't want chosen and it then re-tries the random number if that is chosen. eg., int GetNewDir(int...
View ArticleAnswer by pad406
All you need to do is where you check if the f key is pressed add a check that the chest is not already open if (Input.GetKeyDown("f") && enter && !open)
View Article
More Pages to Explore .....