hi, am getting these two errors
UnityException: Tag: Moveable is not defined! MoveRight.Start () (at Assets/MoveRight.cs:19) NullReferenceException MoveRight.Update () (at Assets/MoveRight.cs:67) with the following code using...
View ArticleWhat are the errors I'm making and how do I fix them
public class Player : MonoBehaviour { private Rigidbody2D myRigidbody; [SerializeField] private float movementSpeed; private bool facingRight; // Start is called before the first frame update void...
View ArticleFlick soccer game - ball cannot go left / right
I have played around with the variables and found that it persistently only goes straight. By increasing the force, it succeeds flying up but still goes straight. The puzzling part is when the...
View ArticleMake a cube rotate in right or left direction randomly
i have a cube which i want to rote right or left on the x axis as shown in the diagram randomly.i have seen the euler angles and the rotation concept and some questions about them but have not found...
View Articlemoving like a snake to the right and to the left
using UnityEngine; public class test : MonoBehaviour { [SerializeField] private float speed = 10f; public void Update() { transform.Translate(Vector3.up *speed * Time.deltaTime, Space.World); } } have...
View Articleendless runner rotating
I need a runner script like temple run but with smooth rotation along the path![alt text][1] [1]: /storage/temp/152823-road.png
View ArticleBrief sharp noise burts / clipping in soundtrack after Webgl build
Hi! The audio in my project sounds perfect in Unity and when I choose "PC, Mac & Linux" platform build. But when I choose Webgl and upload to itch.io a "clipping" sound appears spontaneously on the...
View ArticleAddForce to the left.
Hi, I'm quite new to unity and I am making a little game where you can shoot to the left and to the right with the arrow keys. I made the projectile go to the right with this line....
View ArticleBullet Counter Not Working Propperly
hey guys i have 2 scripts that handle my weapon i have a problem and dont exactly know how to fix it the problem is in my player_shooting.... Script.... my ammo left is goint faster than my bulletrs...
View ArticleHow to Make an Endless Runner Move from track to track smoothly
Hi, I'm making my first game - endless runner 3D, but I can't figure out how to make that player change lanes smoothly. I also don't know how to make it work on the phone - the player switches to the...
View Articleproblem with scripting movement
Hey, so I've followed a guide by code monkey where he shows how to script jumping and movement. All the jumping part is ok (although I had to change it a little to work, I don't know why) but there is...
View ArticleMove player to left and right ( android Touche )
this script its for windows keyboard i want switch to android touche using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController: MonoBehaviour { public...
View Articlefrom keyboard inputs to UI buttons,
Hello I am trying to switch from left arrow right arrow inputs for pc, to on screen UI buttons for andoid I followed few tutorials and few answers here but I did not find a valid solution. the player...
View ArticleRigidbody2d Moving up and Down but not left and right
Hello guys, Fresh unity user here, My RigidBody2D (pong game) is correctly moving up and down, but not left and right. The code seems simple, but i can't understand why it's not moving. I have set the...
View ArticleLeft And Right Animation For Mario Kart Characters
I Need A Script For Left And Right And Animation For My Mario Kart Game When I Click A or D I Want it to make Mario,Luigi,Metal Mario,Gold Mario,Donkey Kong,Diddy Kong,Yoshi,Birdo,bOWSER,The...
View Article