Questions tagged as 'unity3d'

1
answer

c # - Unity - Error: Object reference not set to an instance of an object

I'm a beginner in C # programming, and I'm trying to learn how to make a sidescroller 2d game, but I could not get past a part of the tutorial. This is because the camera simply does not follow the character when I press play and Unity shows an...
asked by 29.05.2016 / 06:49
1
answer

How to move and rotate where the mouse clicks?

I created a script in which my character moves around the mouse but has a problem: it is not spinning > Y , this is the condition I had to create for it to spin on the X axis: else if (target.x >= target.z) But I wish that when he...
asked by 19.10.2017 / 06:14
1
answer

Is it allowed to use free Unity asset store sprites in monetized games? [closed]

Is it allowed to use free sprits from the Unity asset store in monetized games? I saw that in the Unity Asset Store there are many sprites that are free. I was thinking about starting some simple Android games and posting them to the PlayStore....
asked by 12.07.2017 / 20:24
1
answer

Method that recognizes the touch of the screen of CELLULAR C #

I'm doing an augmented reality application with unity and vuforia. I created a class that makes the ball jump, now I need to insert this movement of the ball to a touch on the screen of the cell phone ... Does anyone know of any method that iden...
asked by 11.09.2015 / 17:18
2
answers

Development Problem in Unity 3D

I'm designing a game project in Unity 5-64bits, I'm in the making part of the camera move. When I was typing the Javascript code, trying to use parentheses always gave the following error:    An error has occurred - error in text editor exten...
asked by 30.03.2015 / 07:06
2
answers

Problem with the Unity camera

I'm creating a game with unity 5 in 2d, and tried to create a script for the camera to follow the character by moving the camera transform. For this I followed some tutorials on youtube but when I was compiling the code indicated in the Lerp met...
asked by 08.02.2016 / 17:29
1
answer

Unity 5 - Shoot up, enemy ship does not shoot

The enemy ship simply can not shoot and walk at the same time, or it does one thing or another. public class EnemyScript : MonoBehaviour { public float speed = 5f; // Use this for initialization void Start () { } /...
asked by 03.01.2016 / 01:30
2
answers

How do I know that I clicked on a GameObject on Unity?

I'm trying to create a game similar to fruit ninja, but I know little about game programming, I understand c # code, could you tell me a method of clicking on a gameobject?     
asked by 26.02.2016 / 16:29
1
answer

Unity3D: How can I move GameObjects from the same script independently?

I created a script in Unity3D that causes a GameObject to move sinusoidal. The movement occurs perfectly, but when more than one GameObject containing this script is in the scene all move like a mirror of each other and not in a...
asked by 17.02.2017 / 20:53
1
answer

How to adjust the gun so it always shoots where the sight is

I have a gun that is positioned on the screen manually and I need to create a script in such a way that when I shoot, the bullet will reach the point where the target is targeting, which in this case is the coordinate of the half of the screen....
asked by 26.07.2016 / 16:07