Questions tagged [jumping]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

Refactoring jump-to-damage blueprints into parent that forwards jump collision events

I was wondering if anyone could help me out with a problem I’m currently having. So I have this blueprint setup for damaging enemies by jumping on them, but the setup I’ve been using for a while now ...
user avatar
0 votes
2 answers
71 views

Height in 2D game

I'm working on a 2D top-down game (like the picture below) and am wondering what can I do for "jumping" So far, I've done these: adding two events in jumping animation (one for when the ...
user avatar
  • 599
0 votes
0 answers
29 views

Replace Space bar by UI button to jump

There is a jump script and it works correctly on my pc. How can I use UI button instead of Space bar? there is three input in my code Input.GetKeyDown(KeyCode.Space) Input.GetKey(KeyCode.Space) ...
user avatar
  • 107
0 votes
0 answers
124 views

My jump never stops

I'm making a short jump test in SFML. However I have a problem: whenever the jump button is pressed the character will jump but will not fall down, he will keep going higher. However, in the beginning ...
user avatar
  • 101
0 votes
0 answers
26 views

How to make a variable height jump controlled by parameters?

I'm trying to make a variable height jump controlled by parameters. I want to be able to specify the max height of my jump, and a time to max height. I also want to be able to specify a min jump ...
user avatar
  • 33
0 votes
1 answer
30 views

Make platformer character stay in the air at the top of a jump

I have a player who can jump. I want the character to stay in its position and not fall to the floor. This is the code I am using so far: ...
user avatar
1 vote
2 answers
114 views

How to make an object jump an equal height whenever it hits the ground?

So, I want to make an object jump an equal height whenever it touches the ground. Something like a bouncing ball. But I can't use Physics Materials. Here are some ways that I tried: Used Physics....
user avatar
  • 115
1 vote
0 answers
98 views

Corgi Engine - Character glitches with "jump" animation on top of a ladder

I'm new to Corgi Engine and Unity in general. I have an issue that I could find a way to resolve. I'm using CorgiEngine's "RetroLadder" prefab and extended "Rectangle" character ...
user avatar
  • 121
1 vote
1 answer
385 views

How can I jump down from a platform in Unity?

How can I jump down from a platform in Unity? I use two 2D colliders: one is my character, another one is platform. These colliders allow my character to stand on platform. Now whenever a characters ...
user avatar
0 votes
1 answer
112 views

How to stop a jump midair and remove y velocity in the process

What I want to do is to cut a jump midair by turning off the y velocity when the player releases the jump button (like in Hollow Knight). I managed to do that with: ...
user avatar
0 votes
0 answers
59 views

Something is wrong when my player is jumping on walls

When my player jump beside walls and it reached the top of the wall, it's forcing the player to stop at the point of top of the wall. Like if my player y is higher than the y of the wall, it's making ...
user avatar
0 votes
2 answers
2k views

How can I fix “Cannot read value of type Vector2 from composite” error in Unity?

I'm making a 2D game with Unity using the new Input System. I used spriteRenderer.flipX to flip the player but since it is made of three parts (body and two eyes), ...
user avatar
  • 71
0 votes
1 answer
380 views

Why does ForceMode.VelocityChange work but not Rigidbody.velocity = ... in script?

I have a FPS movement script that I created that has a jump function that looks like this ...
user avatar
  • 462
1 vote
1 answer
97 views

How can I implement a Varying Jump Height Mechanic for my character?

First of all I want to mention that English is NOT my mother tongue, I am using GODOT to make my game and that I am only 16, so I don't have any prior programming experience, although, I understand ...
user avatar
0 votes
2 answers
193 views

Why the player clings to the ground and cannot jump?

I'm making a 2D platformer with Unity. I used this tutorial to write the code but with some changes like using the new Input System. Like the tutorial, I've defined three variables called ...
user avatar
  • 71
0 votes
1 answer
105 views

How do I get my sprite to do a regular jump instead of jolt up?

I have been getting into game development and I have made some progress. I have come across an obstacle which is jumping I managed to get the Jumping to semi work but it doesn't look like a jump but ...
user avatar
0 votes
1 answer
76 views

Unwanted jump when landing

I managed to make my 3D player character jump (hurrah!) but I get an unwanted jump upon landing. It's not a mid-air double-jump. If I press space mid air, then after it get backs to ground it ...
user avatar
1 vote
1 answer
2k views

What is the equivalent for "(Input.GetAxisRaw(Horizontal))" in the new Input System?

I'm making a 2D platformer game with Unity and I have some problems with the new Input System. Also, I'm using PlayerInput component with invoke unity events behavior. In fact, I downloaded a player ...
user avatar
  • 71
0 votes
1 answer
1k views

Jump script using AddForce not working

I am making a simple jump script by adding a separate script to the character. I got the character from the Asset Store and I have left it untouched. I have searched the solution and similar problems ...
user avatar
  • 113
0 votes
0 answers
64 views

Wall jump without returning to wall

In my 2D Platformer character controller that has both a wall jump and a double jump ability, how would I approach implementing a feature that stops the player from returning to the wall they ...
user avatar
  • 445
0 votes
0 answers
49 views

How to play somersault animation during jumping at top point like in Contra games in 2D game (godot, gdscript)?

Here is my jumping code: ...
user avatar
  • 231
0 votes
1 answer
168 views

Touch input not working well for mobile game made with Unity 2D

I made a simple game in unity where the user taps their phone screen and the player jumps up. When I test it on my phone (not sure if this matters but it's a Samsung s9+), I tap the screen and usually ...
user avatar
1 vote
0 answers
116 views

Unity wall jump issue

I've got a very annoying problem that I have been stuck on for a few days and I can't figure it out. It is for a wall jump. I basically want my wall jump to have a bit of force away from to wall to ...
user avatar
0 votes
0 answers
29 views

How do I get my character to jump?

I've got animations and simple movements down as well as attacking, although I'm having my difficulties with jumping and I'm not sure how to make it work. ...
user avatar
0 votes
0 answers
110 views

How to stop jumping again when 3D character is in air (double jump)?

I'm working on simple rpg and having some trouble with player jumping. I'm trying to use unity's raycast to check colliders under the player before jumping again. The problem appears that no matter ...
user avatar
0 votes
2 answers
86 views

Double jump, without allowing two jumps after falling down a cliff

I created a script that allows the player to double jump, which works like a charm. The problem is if the player walks off a cliff, they will still be able to jump twice. But that isn't how double ...
user avatar
0 votes
0 answers
174 views

How to make parabolic jump from a to b to c and so on?

I want to make a game similar to "Dancing HOP: Tiles Ball EDM Rush" I am trying to make an object jump from point a(z=0) to b(z=10) to c(z=20) and so on, keeping the z axis distance constant for each ...
user avatar
42 votes
1 answer
5k views

How to differentiate landing on top of an object from falling down the side?

I am looking for a conceptual solution to my problem. It's a simple platformer-alike game where player can move horizontally during free-fall. Consider those two cases: In the first case, from game ...
user avatar
  • 540
0 votes
1 answer
82 views

Unexpected velocity changes in unity

I have a character that moves with a rigidbody. When I jump, it looks fine, but sometimes, my character boosts up while in the air and shoots out of the map very quickly. I checked, and when it ...
user avatar
0 votes
0 answers
124 views

How do I program a fan in a platformer game?

Fan physics I have a platformer game and want to have fans in it that blow in a given direction and if the player presses the jump button they can go even further. How do I do this? side note: I ...
user avatar
3 votes
1 answer
1k views

How to control jump strength by how long the player presses the jump button?

In a platformer game I am working on, I want my character to have controlled jumps. If I simply tap the jump key it will jump a just a little or if I hold it for a time it will jump higher. What do I ...
user avatar
0 votes
0 answers
68 views

My sprite walking animation code doesn't work at all

This is my first time doing code for a game so I followed some online tutorials. When I got to the walking and the jumping animation I just can't get it to work whatever I do. I tried multiple codes ...
user avatar
  • 1
0 votes
0 answers
26 views

Check gap in 3d environnement

I am in a 3d environnement, when I jump, i'm calculating the hitPoint of the end jump. I want to know when I jump, if there is a GAP between my initial point, and the end point. But I don't want to ...
user avatar
  • 271
0 votes
1 answer
692 views

Help with 3D Double Jumping in Unity

I'm having some trouble with vertical movement. I'm trying to add double-jumping but none of the scenarios online seem to be working, and I can only ever manage to get a single jump. Here's my code: <...
user avatar
2 votes
2 answers
270 views

Parabolic Jump Libgdx Without Box2D and With Vectors

I have tried to write a jump method that sketches out a parabolic jump but it results in either no movement, or a jerky upward movement when I try to scale up dt. I have the following things defined: ...
user avatar
0 votes
2 answers
436 views

Keep platformer jump height consistent with different frame rates

I want to achieve a platformer jump similar to that of Super Mario Bros. (keep pressed the jump button to jump higher) and I want it to be frame rate independent. At 30 FPS it works as I want. However,...
user avatar
0 votes
1 answer
22 views

Unity2D Register which player colliders have activated

I have a player character that has three separate coliders that form this shape (one for the top, one for the bottom, and one for both sides) I'm trying to register floor collisions with the bottom ...
user avatar
0 votes
1 answer
138 views

Setting a jump counter in my 2d platformer built with phaser

I have a platforming game, written in javascript with the Phaser.js framework, where my character collects objects. I thought trying to collect all objects in the least amount of jumps would be ...
user avatar
-1 votes
1 answer
671 views

How can I change the sprite while jumping?

...
user avatar
0 votes
1 answer
84 views

I can't jump when i press up, and left at the same time

...
user avatar
0 votes
1 answer
109 views

How do you time jump animation with uneven landing surface?

Say my player jumps off from a certain point on a 2D surface. Say my surface is uneven, and has varying y positions along the level, how would I then be able to time my jump animation accordingly? (...
user avatar
0 votes
1 answer
1k views

Unity 2D How to prevent character from double jump

...
user avatar
3 votes
1 answer
211 views

Why does my Character Jump only Half as High?

I am trying to implement simple Newtonian physics for my game. However, my character only jumps half of the height I would expect him to. Physics says that the take-off velocity (impulse) ...
user avatar
  • 202
0 votes
1 answer
364 views

Inconsistent jump height

I am doing some physics for a platformer game in MonoGame. The jump height changes based on FPS even though I'm using delta time. When the FPS decreases and gravity is added before movement, the jump ...
user avatar
  • 193
1 vote
1 answer
10k views

Jump Script Component For Character Controller

I'm trying to implement a jump method into my FPSInput script. I know how to make this work for a Rigidbody, but how can I accomplish this with my Character Controller? Does CharacterController have a ...
user avatar
  • 121
0 votes
2 answers
9k views

Play animation of the jump properly in Unity2D

Here is what I want to do: when player jumps I would like to play an animation of jumping once on playing it I would like to stop at the penultimate animation frame till the player falls to the ...
user avatar
  • 751
0 votes
1 answer
3k views

Unity, how to detect landing after jump?

How do I detect the landing of the player without getting interrupt by the onGround check ? I got 2 scripts, one is the normal player script and the other is what I was trying. in the onGround Script ...
user avatar
1 vote
1 answer
2k views

How do I make my character jump on a platform?

This is the code I've written so far: Html: ...
user avatar
  • 7
0 votes
1 answer
288 views

How to manage "jump" in my 2d platform game?

I'm developing a simple 2d platform game with Unity 2d. I have a problem managining my "Jump" action for the player. I would like the player to Jump only when he has his feet on a "surface": ...
user avatar
  • 817
0 votes
1 answer
322 views

How to jump exactly X meters in Box2D World?

I want my character to always jump a constant height, let's say 3 meters. Also character has double jump ability so he can jump max 6 meters. For example, let's say I have pressed jump key while ...
user avatar
  • 133