How do I slow down airmovement?
I'm coding an fps game in C# and I've just finished a basic movement system for my game (walk, jump, look), but it's a little janky still. One of the issues I want to fix is how quickly the player...
View ArticleHow stop the Infinite jump 2d
I'm new coding and c# but I'm trying to make it so the player can only jump once before touching the ground again. using UnityEngine; using UnityEngine.InputSystem; public class PlayerMovement :...
View Articleabout the camera in Unity2D
Hello, i am trying to develop a 2D plattformer game. I already made a code for the camera so it follows my player. It works perfectly fine but i have one problem. How do i make it so it doesnt follow...
View ArticleHow to only jump once in Unity 2D
I have a Problem on jumping only once. If i do "if (Input.GetButtonDown("Jump") && coll.IsTouchingLayers(ground)) { rb.velocity = new Vector2(rb.velocity.x, jumpForce); isInAir = true; }"...
View ArticlePlayer freezes when jumping
Hello, I have script that makes my player jump but when it jumps while standing still it seems to freeze for a few frames at the top of it's jump and I can't figure out why. Here is the code: //make...
View ArticleChecking if a Player is grounded. No efficient method ?
Hi, I'm in a Unity 3D project, and I'm trying to add a jump method and to do so I need to know wether a player is grounded or not. To do so I use this method in my PlayerController: public bool...
View ArticlePlayer doesn't jump whatsoever
Here's my code in update function i use to allow the player to jump. This however doesn't happen. Even the Debug.Log() gets called but still player doesn't jump. I have even tried setting Gravity scale...
View ArticleDifferent behavior with same input
Hey pals :) I am very confused about something that I don't understand and would be glad for an explanation: I am using [Brackeys’ 2D Character Controller][1], and while implementing a jump...
View ArticleDifference in functionality when pressing different buttons
Hi everyone :) I am new to Unity and game developing, and while trying to create the jump function for the player, I found something that is not clear to me, and I would be glad for an explanation: I...
View ArticleJumping only working while in motion
I am very new to both C# and Unity, so please be as simple as possible in the explanations. I am trying to make my player jump when the spacebar is pressed. It works fine if i hold down W, A, S or D,...
View ArticleI'm having trouble with grounding my character prototyping
I'm attempting to limit my characters ability to sprint and jump unless they are directly touching the ground at that moment. Though I'd like to add momentum from sprints being carried over into jumps...
View ArticleKeep Parabola Movement while sliding left and right
Hi. I try make an endless runner game. I did when press the uparrow key for jump , player moving along the parabola. but the problem is this: when the player jumps , if the button is pressed to slide...
View ArticleWhy isn't my jump working?,Why doesn't my jump work
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ThirdPersonMovement : MonoBehaviour { public CharacterController controller; [SerializeField] Transform cam;...
View ArticleHow to fix jumping exploit Unity
Hello I have a player controller and some simple obstacles in my scene like cubes and such. I have found an exploit where if you get close to a wall and spam the jump button, you will go flying in the...
View Articlecharacter resets when pressing a key while jumping
I'm quite new to unity and I'm trying to make a 3rd person 3d game. For my camera I used cinemachine and have an empty player with a playerObj that is a capsule. For the movement I followed a video in...
View ArticlePlayer falls way too slow after a jump and moving off a ledge?
I have a character controller and my own player movement script, but when I jump, even with the appropriate default gravity, my character falls slowly. And when I walk or run off a rooftop, I can keep...
View ArticlePlayer not jumping at all
My Player is not jumping, i'm following a tutorial and have checked 3 times if the code is correct and it is, i don't know what is the problem now. Here is the code `using System.Collections; using...
View ArticleAdd delay between jumps in unity
So in my game I want the player to have the ability to jump while in the air multiple times, and have the time between the jumps increase the more they do it before eventually stopping. I'm very new to...
View Articlecharacter stop jumping /falling if i move when am jumping
hello I am trying to make my character jump it works fine, but if I start moving in mid-jump the character stops jumping and starts moving left and right if I stop the character continues jumping, same...
View ArticleJumping code not working.,Jump code not working for some reason?
So I'm completely new to unity, and fairly inexperienced in coding. Therefore I've been following this guide to make my first person 3D game work. All the controls work this far, except for the jumping...
View Article