Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jumping]

The tag has no usage guidance.

0
votes
2answers
40 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,...
0
votes
1answer
15 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 ...
0
votes
1answer
22 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 ...
-1
votes
1answer
138 views
0
votes
1answer
69 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? (...
0
votes
0answers
296 views

How to keep a character from double jumping multiple times in a 3d game?

I am very new at C# and I having difficultly figuring out how to keep my player from double jumping and flying through the air. I know this question has been asked a lot, but I am having trouble ...
0
votes
1answer
527 views
3
votes
1answer
156 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) ...
0
votes
1answer
172 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 ...
1
vote
1answer
3k 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 ...
0
votes
2answers
2k 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 ...
0
votes
1answer
649 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 ...
1
vote
1answer
448 views

How do I make my character jump on a platform?

This is the code I've written so far: Html: ...
0
votes
0answers
133 views

How do I Instantiate a Particle System when I jump and then push down with Force on the ground?

my question is when I jump and then press the S key it will push down the Rigidbody with Force to the ground like he is smashing the ground. But I want to Instantiate a particle system directly when ...
0
votes
1answer
167 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": ...
0
votes
1answer
149 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 ...
3
votes
2answers
430 views

Creating proper jump mechanics in LibGDX with Box2D?

I'm trying to create a proper jumping system for a 2D platformer with box2D, however, I'm not exactly sure how to make a good jumping system. Right now, I'm just doing ...
-1
votes
2answers
88 views

Ball jumping algorithm

I'm still starting out anf i'm making a 2d game where a ball which jumps through different blocks. The ball jumps a fixed height when i place the blocks that the ball should dodge i place them ...
1
vote
2answers
1k views

how to make my character jump

I want my player to jump and i tried my best to do it and i couldn't. Basicaly my class are splitted(i have speparate player class and keyboard class) which i thought would make my life easier but ...
-1
votes
1answer
626 views

Correct jumping cycle logic in Unity with 3 jump animations

I have 3 jump animations; jumping up, jumping down, and the loop in between. I want to play them in an order, using logic. When the player presses space, I should play the "jumping up" animation, ...
3
votes
1answer
280 views

Unity API - Making a Sphere Jump?

I'm making a very simple game with a sphere that's supposed to roll and bounce on "planets". Also, please be ready to read a lot. I want to be very descriptive for you. :) I've pretty-much-done ...
1
vote
1answer
269 views

How do I convert gravity from pixels per frame² into Unity's Rigidbody2D gravity scale parameter?

I'm learning Unity2D by trying to make a Mega Man clone. The first thing I'm trying to do is to replicate the original series physics. It differs from game to game, but I'm leaning towards something ...
2
votes
2answers
254 views

Jump-through & drop-down platform

I'm creating platforms in my game where the player can: 1) Jump through them from the bottom and land on top of them 2) While on top of them, drop down through them I've been able to get #2 working ...
0
votes
2answers
193 views

Why does the player jump every time it touches the ground in my JavaScript game?

I am making a javascript game where the player jumps over oncoming cars, but after the first jump every time the player hits the ground they jump again automatically. I believe the problem is because ...
2
votes
1answer
1k views

How to jump in Box2D with LibGDX

I am making a 2D platformer in LibGDX with both Ashley and Box2D. I have it so, that the PlayerControllerSystem watches for the jump key being pressed: ...
2
votes
1answer
65 views

Dynamic force behind logical jumping on 3 axis'

I've been working on physical jumping in a 3D environment, I've got it working with a static force. The problem with this is that the force on each axis should be different due to the rotation from ...
2
votes
1answer
106 views

Logical math behind jumping in a 3D world

I'm unsure if I should ask the mathematic part of StackOverflow or the gamedev part. I'm trying to figure out how the gravity changes the position of an element in a 3D world. I've been trying to ...
-1
votes
1answer
92 views

Obtain jump vector given time, distance and gravity

I tried for several days to solve my problem , but in the end I just gave up and I decided to ask , since the solution is beyond my knowledge I'm writing a 2d top-down game, in order to simulate the ...
0
votes
2answers
99 views

Prevent player from jumping on a mesh

I am working on a game and I have a mesh that I use to block hallways and prevent the player from going that direction. They are placed vertically with slight angles. I'm having a problem that the ...
1
vote
1answer
72 views

Collision Detection Unresponsiveness

I'm creating a simple jumper game in Libgdx that makes the player jump over obstacles in order to stay alive. The only problem is that the collision detection for when the player just touches the ...
-1
votes
1answer
117 views

Making the player Jump in like a Upper - Right manner in Unity

Ok so I'm new to Unity and I am trying to make this simple ball game. Now in a situation I want the ball to jump in a diagonal manner (i.e W + D ). Script that I have makes the ball jump only up and ...
0
votes
2answers
92 views

How do I stop the player from rotating when they collide with a tile?

I use Touch movement and if I jump and hit a corner with the feet of my player, my player rotates but I don't want this. Can anyone help me jumping without rotating if I hit anything ? here is my ...
0
votes
0answers
41 views

What can I do to improve my movement?

I'm starting with my first prototype, I can move my player and jump, but it doesn't feel very good indeed. I've made a gif to show it. This is my script: ...
-1
votes
1answer
62 views

My character just floats up into the sky

So this is the code I'm using for jumping. The character just floats in to the sky. I'm making an infinite runner. ...
0
votes
1answer
1k views

Sprite can jump up through platform onto platform, once while it's on platform, but falls through second time

Sorry, I'm kind of new to this whole thing and trying to learn both Unity and its use of C#. I have overlapping box colliders set up and a trigger on the lower one to allow me to jump through the ...
0
votes
1answer
41 views

Very less vertical transformation

Im using pretty basic code here charcter.transform.Translate(Vector2.up * speed * Time.deltaTime); Im using rigidbody 2d and I'm creating a platformer. When i ...
0
votes
1answer
84 views

Calculate Jump Limits

My question is in a similar vein to this question, I am creating a pre-mapped pathfinding solution much akin to how Ash Blue was for my 2D platformer-style game (in XNA). As part of the process, I ...
2
votes
2answers
222 views

Cant jump from ground collision

I have a character that starts in the air and applying gravity to it to collide with platforms in my level. At the start, the character gradually gains speed descending until it collides with a ...
4
votes
1answer
64 views

How does server correct late input

Imagine the following scene: The height one player can reach on jumping depends on how much time the button for jumping is pressed. When the player jumps, the input is sent to the server and physics ...
2
votes
1answer
850 views

How do I set the Jump distance and height of my sprite in C#

I have been able to make my sprite jump for a platformer I am making in unity. I can't seem to be able to make him jump a certain height or distance though, every time he jumps it's like he's jumping ...
2
votes
0answers
118 views

Proper setup for Mecanim standing jump animation

I have a character standing jump animation with that the character at start prepares for the jump (flexing downwards) and then jumps up in the air and i'm wondering how to get it working properly with ...
3
votes
3answers
957 views

Unity Click make Jump and Pause

I use Unity 5 and I have an issue with my game, when I click on the Pause button my character jumps before the game is paused. My script detects the click for jump before the pause button so for that ...
1
vote
1answer
70 views

dynamic body jumping out of water object

In my game I have my main object, a jetski, which will dive down into water, when the screen is touched. I managed to code the jetski diving down, with Box2d and some buoyancy forces. But when the ...
3
votes
2answers
10k views

How to check if grounded with rigidbody

Does anyone have a better way to make an object with a rigidbody check for ground and then jump, right now I wrote a script where a raycast is cast downwards and it checks for distance but then I ...
8
votes
3answers
2k views

Preventing a Combination of Rigidbody Jump Force & Bounce Magnitude in Unity3D

I'm building a fairly simple marble racing game in Unity3D. The ball is a 3D physics object that moves only on the X and Y axes. It has the ability to roll left and right, and to jump. Pretty basic ...
1
vote
1answer
70 views

Double Jump causing problems?

Here is my code. I have an empty Gameobject directly underneath the child with a small radius checking the ground every thing seems to be correctly covered, but for some reason the jumping mechanic is ...
0
votes
3answers
1k views

“Hold to jump higher” suddenly outputs a much higher jump

I'm programming my first game in Unity and I'd like to make a very controllable jump. The idea is to apply an upward force while the player is still pressing the jump button, and then after some time ...
0
votes
2answers
586 views

How do I make my character jump in any angle?

My character is a square which can spin in any angle but it can not jump in certain angle. Can anyone help? ...
0
votes
1answer
246 views

Libgdx - Jumping, What am i doing wrong?

I really can't work out whats wrong with my code. I have an input listener for gestures, when I Swipe the position goes up on the y axis fine but he doesn't come back down, if with Gravity added. I'll ...