Quantcast
Channel: Answers by "pad406"
Browsing latest articles
Browse All 34 View Live

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 Article



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

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

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

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


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

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

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


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


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

Answer by pad406

Sorry, dont know if it's a bug or not. As an alternative you could use sendmessage or broadcastmessage

View Article

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

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


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

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


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

Answer 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

Browsing latest articles
Browse All 34 View Live




Latest Images