All Questions
1,055
questions
0
votes
1
answer
27
views
Player is jittering when colliding with a wall
When I move against the wall, the player starts jittering.
using UnityEngine;
public class Movement2 : MonoBehaviour
{
[Header("Movement")]
public float Speed = 4f;
public float ...
1
vote
0
answers
37
views
How to access the mesh of static variable in unity c#?
I have a problem the problem is this how can I access the mesh of the static variable in unity when the variable is in another script and I want to change the mesh in other script if i do not make it ...
0
votes
2
answers
44
views
My player movement script randomly sends the player in seemingly random directions sometimes
I am new to Unity and the following code is supposed to be a player movement script. Everything works as expected until every now and then, usually when multiple inputs are pressed in succesion, the ...
0
votes
0
answers
51
views
Maze in Unity - calculating shortest path and changing material
The problem seems to be that for some reason the ApplyMaterial only goes to the target cell and does not even try to change the materials of the other cells accordingly. I want the solver to find a ...
0
votes
1
answer
11
views
Unity: Animations Work in Animator Window but Character Freezes in Scene When Switching Animations via Coroutine
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Random = UnityEngine.Random;
public class CreatureController : MonoBehaviour
{
public Animator ...
0
votes
1
answer
34
views
Assistance needed with Error when trying Unity
So I am new to Unity and I am trying a little game.
I am getting a few errors; can someone help?
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ...
1
vote
0
answers
28
views
making my floppy bird jump animations make my game poses in unity
So I'm working on my first game using unity, it's a simple floppy bird re-creation, I follower a video, but the video didn't include how to animate your characters, thus I wanted to learn how to ...
1
vote
0
answers
73
views
Unity 2D top-down movement using rigidbodies
Here is how my scene is designed:
Player on top of the lily pad
Player can pull pads and when they are close jump onto them. Lily pad is tied to one point using target joint, so whenever player stops ...
0
votes
0
answers
20
views
How to create a plot tree object with different actions without inheriting (e.g. simple ScriptableObject)?
I need to create a game event with different actions like in Slay the Spire game (see a photo below).
The object must contain a list of actions (e.g. give some item to player or else). On choosing ...
0
votes
0
answers
41
views
I get two errors in this Unity code, but I don't understand why
I get errors on 45,26 51,26. I get this error "RoomManager.OnPlayerLeftRoom(Player): no suitable method found to override". It is a room manager code to spawn and add the player to the room.
...
0
votes
1
answer
38
views
How to click throw objects using Physics 2D Raycaster?
In my 2D project I need to click throw object(Clickable Area) on Table. I processing clicks on objects with physics raycaster 2D with IPointerClickHandler event. How can I do that? Because it can ...
0
votes
1
answer
43
views
C# Unity Bug with blocks disappearing for no reason
I am following a tutorial on how to make a Block Puzzle game: https://www.youtube.com/watch?v=RfCwLjfroMs&list=PL17UdFXqPr_cFumTzS4PvIc1mhW79umG8&index=13
Everything works fine besides the ...
0
votes
1
answer
40
views
Unity: Character moves but it doesn't show
I'm making a 2D Platformer, Where the character is supposed to move right when I press the D key and left when i press the A key and it does move, the characters X position changes correctly in the ...
1
vote
0
answers
24
views
2D drag and drop dynamic rigid body spinning out of control in Unity
I'm trying to make a 2d game that involves simulating dragging and dropping certain dynamic physics objects (like squares) and I am a beginner. I need it to look like the rest of the object holds a ...
-1
votes
0
answers
22
views
Unity Android game build errror : Gradle build failed
Whenever I try to build my Android game in Unity, I encounter the following error: "Gradle build failed." I have no idea what is causing this issue. I haven't modified the Gradle package or ...