Quantcast
Channel: Questions in topic: "left"
Browsing all 135 articles
Browse latest View live
↧

Enemy moving left towards player.

I'm very new to Unity and coding, so I appreciate your patience. I'm creating a 2D sidescroller where the character is always stationary on the left side of the screen. You have to use gesture attacks...

View Article


so how to i create a moving barrel

im creating a tank game and i want to have a mouse look so the thing that holds the barrel on top moves left if i move my mouse left and right if i move the mouse right. but strictly so that it only...

View Article


How to determine if an Enemy is moving left or right?

First, here's the code using UnityEngine; using System.Collections; public class BMoveAI : MonoBehaviour { public Vector2 pos1; public Vector2 pos2; public float speed; void Update() {...

View Article

Unity 5 Movement swipe to left and right and up and down

Hello can someone make a this script work with swipe like when you swipe to the side you move to the side and when you swipe up it jumps here is my script PlayerControl using UnityEngine; using...

View Article

How to make player move along x axis?

I am making a game where the player is moving automatically with this script using UnityEngine; public class MovementForward : MonoBehaviour { public Rigidbody rb; public float forwardForce = 2000f; //...

View Article


How do i make it more horizontally with no rotation?

So i am making a "car" game and i want the car to only move forward and back, and left and right, without rotation. I want it to just translate into its next position. I already have the car moving...

View Article

How to access trackpad or DPAD input controls in unity application?

In my project I made an unity android application support for ODG glasses R7. There are two modes for taking input controls in ODG glasses , one is cursor mode and other is selector mode. In selector...

View Article

I want to move my cube on right or left when I touch screen for Android...

![alt text][1] [1]: /storage/temp/103608-screenshot-20171012-2303071.png strong text

View Article


Unity 5 character movement problem with strafing left and right,Cannot get...

Hello guys, since yesterday I have been having a problem with my character movement. The character moves well. I mean he goes forward and backwards, left and right however I would like him go left and...

View Article


Check where mouse is clicked

Hello! When you use Input.GetMouseButtonDown(0), what's a way where you could tell where it is pressed? Pretty much I want it to be like where if you click the left of the screen, it does a function,...

View Article

Character direction can't be changed before the character reaches a screen...

Hello everyone! So I have this player that goes from left to right when I hit the "right" button, and it goes from right to left when I hit the "left" button. When I hit the "left" button, I can press...

View Article

Jump from position A to position B

I am making a simple 2D game and I have two platforms and you can jump left or right. I need the jump to be to a fixed position on the platform and I dont want it to just teleport there. Is there a way...

View Article

Using Accelerometer to move and rotate a 3d cube from left to right

I have been working on making a simple dodge the falling cube game and I have my movement script working, the problem that I'm having is that I want my cube (Player) to rotate on its z axis in the...

View Article


can't move player rigidbody.velocity

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Obstacle : MonoBehaviour { Rigidbody2D rb ; public float moveSpeed ; private void awake () { GetComponent ()...

View Article

Sprite tilts left/right depending on how far it is from the center [C#]

Trying to make a game which has the "Tinder RPG" genre made by Reigns where you swipe cards left or right and it tilts the card depending on how far it is from the middle. I've tried...

View Article


Why won't my animation play properly

I can move right and the animation works properly. When I move left the animation glitches out. I have tried reflecting each of the images of my walk animation and implement it into the code, yet it...

View Article

Unity Support of Right to Left Languages, especially Syriac (Assyrian)

I would like to know how can the Unity IDE and Engine support the Right-to-Left languages, especially Syriac (Assyrian/Neo-Aramaic). It does somewhat support Arabic Alphabet, but doesn't even connect...

View Article


Raycast always hit a point at bottom left corner

Hi all, I'm struggling to make a raycast hit a target that I previously moved at a speciific point. Here's my code : Ray camRay = m_camera.ScreenPointToRay( m_spherePosition.position ); RaycastHit hit;...

View Article

moving sprite by certain parameter plz help

so i have a sprite and i want it to move left and right.and it has boundaries ,when it hits the right boundary it should move left and when it hits the left one it should move right,(on x axis) and...

View Article

Sprite wont flips left when still. Need Help

Hi guys really need help. when still my sprite flips left and I need him to face the direction I press. Please help. Heres my script. using System.Collections; using System.Collections.Generic; using...

View Article
Browsing all 135 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>