Quantcast
Channel: Answers by "podmaster"
Browsing all 30 articles
Browse latest View live
↧

Answer by podmaster

Hi , i know that the first person controller from unity standard assets has that functionality i dont really know how it works. But you can create an OnTriggerStay2D to get the velocity of the...

View Article


Answer by podmaster

Find() its not recommended to use. You can create a new script "keepScale" attached to every child you want to keep in scale and do something like this: var originalScaleToKeep : float; function...

View Article


Answer by podmaster

When you define your health variable do it like this var Health1 : int ; and set the value from the inspector, selecting the gameobject. and i recommend you to try also putting your if code this:...

View Article

Answer by podmaster

I'm about to give up with this, if i raycast and an enemy is on the way, the one in the back don't get any damage. The answers that i found doesn't work in 2D. Any other idea? if not i will set the...

View Article

Answer by podmaster

**EDIT:** Your game is 2D or 3D , your trying to make something like zelda or pokemon? You are mixing lots of stuff there. transform.position it's equal to (x,y,z) or Vector3 and when you do...

View Article


Answer by podmaster

Hey what version of Unity are you using? Did you know about the new UI system on the upcoming release of unity you can test it on the latest beta 4.6 Here is a tutorial...

View Article

Answer by podmaster

Well i decided to give up and just get reference to the pool script for now i don't have so many spawn objects. I leave the code for anyone how is working on pooling Objects as an alternative. I create...

View Article

Answer by podmaster

Hey i leave you one script i made for a camera shake effect that is applied when a big spell explodes, maybe it gives you some ideas. It worked for me really nice you can twitch the timing and it has a...

View Article


Answer by podmaster

Don't know where to start, first i don't speak perfect english sorry for that heh. What you need is a function to loop from all your objects and when it finds one inactive store it on a variable. You...

View Article


Answer by podmaster

Sorry i have updated my unity to the new UI 4.6 so i don't remember exactly how to do it but you should first get the Gui text component then acces the color alpha. var GuiLabel : GUIText;...

View Article

Answer by podmaster

Sorry i don't use C# only JS , but you can do this converting the touch cords from screen to world position. Reference: http://docs.unity3d.com/ScriptReference/Camera.ScreenToWorldPoint.html Then...

View Article

Answer by podmaster

You can do: Application.LoadLevel (Destination); //FOR EXAMPLE Application.LoadLevel ("PlayScene2"); Remember, in order for this to work you must open the file > build setting and drag and drop the...

View Article

Answer by podmaster

I'm really not an expert, but i think there are better ways to do what you are doing. BUT a simple straight solution to this would be to use a multi dimensional Array An array of arrays....

View Article


Answer by podmaster

I'm not sure what the problem is, sorry i can't run tests right now. But if you are trying to make your ball jump, i would use AddForce() http://docs.unity3d.com/ScriptReference/Rigidbody.AddForce.html...

View Article

Answer by podmaster

I would contain the arm "Player" Object into an empty object which center 0,0,0 were on the exact end of the pen. (Sorry if my English isn't good enough :p) Then every time the player press an arrow...

View Article


Answer by podmaster

Hi , i know that the first person controller from unity standard assets has that functionality i dont really know how it works. But you can create an OnTriggerStay2D to get the velocity of the...

View Article

Answer by podmaster

Find() its not recommended to use. You can create a new script "keepScale" attached to every child you want to keep in scale and do something like this: var originalScaleToKeep : float; function...

View Article


Answer by podmaster

When you define your health variable do it like this var Health1 : int ; and set the value from the inspector, selecting the gameobject. and i recommend you to try also putting your if code this:...

View Article

Answer by podmaster

I'm about to give up with this, if i raycast and an enemy is on the way, the one in the back don't get any damage. The answers that i found doesn't work in 2D. Any other idea? if not i will set the...

View Article

Answer by podmaster

**EDIT:** Your game is 2D or 3D , your trying to make something like zelda or pokemon? You are mixing lots of stuff there. transform.position it's equal to (x,y,z) or Vector3 and when you do...

View Article
Browsing all 30 articles
Browse latest View live