Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

Problem with Rotation clamping in Unity

I'm trying to get a simple cannon to rotate to point at the mouse, but I only want it to follow the mouse for 180 degrees and then stop following the mouse, and pick up again when the player re-enters ...
Ultra Gamer's user avatar
1 vote
0 answers
44 views

Scene for Computer Screen

We are developing a scene that will involve heavily interacting with a "touch screen monitor" in the scene.. Because the workflow of the touch screen will need to be dynamic we are creating a REST API ...
R Down's user avatar
  • 111
0 votes
1 answer
506 views

360 degree Shooting using Pythagoras problem Unity 2D C#

I have used pythagoras to give the bullet a velocity in the bullet class. Velocity is applied when Instantiated(); ...
Lonchenzo's user avatar
1 vote
1 answer
3k views

How to drag 2D objects and stop it if collides with other 2D object?

This is the code I am using but it's not working. It drags other object on collision: ...
King Kong's user avatar
1 vote
1 answer
905 views

Object pooling with collisions in Unity

I am trying to create doodle jump like game with object pool for platforms. I have created an empty object with box 2D collider attached to it. This object moves with player and should be gathering ...
Random generalist's user avatar
0 votes
1 answer
175 views

Changing coordinates of the object with velocity preservation

In Doodle jump, if a player jumps over one side of the screen he appears on another side with preserved velocity and other physical parameters. I made two trigger colliders on the sides of the screen ...
Random generalist's user avatar
2 votes
1 answer
109 views

Error once unity got updated to 2017.1

I am working on a 2D platformer and I decided to update unity to the lastest version. Everything went well but once I got the project updated I got 2 error that I am not sure how to fix. Some help ...
Cole.C's user avatar
  • 29
1 vote
2 answers
1k views

Unity Rigidbody2d jittering movement in the y-axis

As said, rigidbody moves fine, even smoothly in the x axis. Problem comes in on the y axis. Whenever the character goes up or down, it noticeably shakes. Additional Info: Unity 5.6 Using linear ...
kdyz's user avatar
  • 282
1 vote
1 answer
150 views

Game (Physics) work in Unity Editor/Remote but won't on Android?

I have a script attached to a car game object that allows the player to tap the screen and then accelerate, the game object has a RB2D and collider set to it , it works fine in Unity Remote , but when ...
tomowale's user avatar
1 vote
0 answers
1k views

2D Unity: How to make a enemy jump from a navmesh platform to another?

I'm currently working on a 2d platformer, however I came across an issue where the enemy moves within a certain range of the platform. In this case I use a navmesh to limit the enemy's movement ...
Luis's user avatar
  • 11
4 votes
2 answers
1k views

How to keep a round body rotating without rotating it's center

I want to make a game in Unity in which the Player is a sad star. I want to have the points (The "arms and legs and head") of the star to rotate like a circle but to keep it's face (which is in it's ...
Mihai Barbu's user avatar
1 vote
2 answers
3k views

How to use touch screen for movement instead of keyboard narrow keys

I wrote this code and run the game on my desktop, now I need to build this game for android and I need to change to touch to move the player, what it should be changed in the following code and what ...
Hamm's user avatar
  • 111
-3 votes
2 answers
287 views

Is it possible to use Java as a scripting language in unity? [duplicate]

I wonder if its possible to use Java as a scripting language in unity to create a basic 2d game?
DevX's user avatar
  • 1
0 votes
2 answers
2k views

How to check if an GameObject exists in Unity2D? (Javascript)

Im making an AI that checks if the player exists or not. How do I check if a certain object exists and put it in a boolean variable?
ElPolloLoco999's user avatar
0 votes
4 answers
6k views

How do I move an object towards a moving object?

I am trying to make an AI that tries to move towards the player but I don't know how. I tried using Vector2.MoveTowards() but it just mimics my movements instead of ...
ElPolloLoco999's user avatar

15 30 50 per page