The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
129 views

Continuous Jumping Cycle

The script makes a GameObject jump using realistic gravity and reach a specific target. The GameObject jumps relative to the target, thus adjusting its trajectory. It also works while the target point ...
-1
votes
1answer
49 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. using UnityEngine; using System.Collections; public class PlayerControl : ...
0
votes
1answer
25 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
39 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 press the button the character ...
0
votes
1answer
54 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
73 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 ...
3
votes
1answer
49 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
67 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
40 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 ...
1
vote
3answers
150 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
48 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 ...
2
votes
2answers
945 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 ...
2
votes
2answers
420 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
52 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
345 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
240 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? using UnityEngine; using System.Collections; public class Player: MonoBehaviour { public ...
0
votes
1answer
103 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 ...
2
votes
2answers
152 views

Why doesn't this 2d physics calculation yield the desired jump height?

I found a formula for gravity and jumping in this article: http://error454.com/2013/10/23/platformer-physics-101-and-the-3-fundamental-equations-of-platformers/ I implemented this formula and ...
2
votes
3answers
366 views

Jumping higher when the player touches a trigger collider in Unity

Im using Unity engine to create a 2D platformer. My character can single/double jump, this works fine everywhere except when i am in range of a collider with a IsTrigger set to TRUE, then my character ...
1
vote
2answers
59 views

Stop vibration (bouncing efect)

I have a game with some ball and I want to make it bounce. I already have movement, gravity, collisions implemented, I only need to make it bounce. Thing is, using this code: player.getVelocity().y ...
0
votes
1answer
215 views

2D animated sprite jumping and gravity physics [duplicate]

I'm currently writing a Megaman clone for my school project. So far all I did was making the character run and stay put when needed. Know I want to be able to make him jump using the 'X' button. I ...
0
votes
2answers
177 views

Vertical Collision Detection, Falling Through Ground

After much work trying to learn collision system theory and apply it, I've got my collision system working for the most part. The player can collide horizontally with no issue, sliding against walls, ...
0
votes
1answer
78 views

Jumping distance due to X velocity

I would just like to know if there is a way to work out the distance of a jump depending on how fast the player is going. For example if the player has a velocity X of 10 and he presses the jump ...
1
vote
1answer
72 views

Odd Jumping Behavior?

While testing my player's jumpinig algorithm, I've come across two odd problems. 1) My player's hard-coded jump height is always much greater (roughly 1.5 times) than the in-game result, making me ...
1
vote
2answers
507 views

Wall jumping collision detection anomaly

I'm creating a game where the player ascends a tower by wall jumping his way to the top. When the player has collided with the right wall they can only jump left and vice versa. Here is my current ...
0
votes
0answers
2k views

Unity working on wall jump

I have a 2D platformer game and in it I have recently implemented wall jumping, and the way I have it works great. However when one jumps with the character and moves towards the wall one can hold ...
0
votes
1answer
283 views

Making a sprite jump at a particular angle android

I am making a game in android Java, and I am kind of new in game programming. Please help me out. I have a sprite that is moving horizontally across the screen. I want him to jump when the use ...
2
votes
2answers
265 views

How can I incorporate the path of a jump into my A* implementation?

I need to calculate the path of a jump via A* for a simple platformer game. Calculating the direction is simple, but translating the jump physics into pre-calcuted voxel paths is a bit difficult. ...
2
votes
2answers
244 views

How to obtain “gravity” and “initial impulse” given “desired time to reach max height” and “desired max height”?

I'm developing a 2d fighting game, using time steps based on frames ie, each call to Update() of the game represents a frame so, no variable time at all. My jump physics code doesn't need to consider ...
0
votes
2answers
370 views

How can I make my sprite jump up and move forward at the same time?

I'm trying to make a sprite's movements work. For some reason, he can only jump and then move, or move and then jump, but never at the same time. I'm using InputProcessor and a TiledMap system. ...
4
votes
5answers
829 views

Goalkeeper Jumping Algorithm?

This may be a "best way to" question, so may be susceptible to opinion-based answers (which is ok for me). But I would also like if there are any tutorials , research papers , etc. I'm trying to make ...
1
vote
1answer
124 views

Adding Leniency to Jumping Mechanic

I have written some jumping code for my player in a platformer game. At the moment it has some basic logic which says that the player can jump if he is on the ground. The pseudocode looks something ...
1
vote
2answers
189 views

Updating the jump in game

I am making a Java game and I want my game to run the same on any FPS so I'm using time delta between each update. This is the update method of the Player: public void update(long timeDelta) { ...
2
votes
1answer
873 views

How can I implement a simple “jump” action with three.js and/or Physijs?

Assume I have a simple Physijs object like this car. How can I adapt something like this to "jump" (hydraulics ftw!) when pressing spacebar for instance? I'm currently thinking applyCentralImpulse ...
0
votes
4answers
6k views

Smooth jumping in 2D platformers [duplicate]

I have a very simple 2D game, similar to old-school Mario or Metroid. I'm having a lot of trouble figuring out the proper way to handle player jumping. I've tried several different methods. The first ...
1
vote
1answer
375 views

Python + Pygame - Collision problems

I'm currently developing a game in Python + Pygame and i came up with a problem with the player and the platforms. The game is a 'runner' where the player it's fixed (The 'x' position isn't variable, ...
0
votes
2answers
124 views

Java game: jumping glitch on multiple collisions

I need help with checking for intersections in a game I'm creating. When a character collides with a single obstacle on the screen everything works as intended, but when multiple obstacles are added ...
-1
votes
3answers
143 views

Detect when two keys are pressed at the same time [closed]

I'm doing a game with XNA and I need an animation when two keys are pressed.. I tried this but it doesn't function. if (Keyboard.GetState().IsKeyDown(Keys.D) && ...
0
votes
3answers
5k views

Implementing a basic jump in libgdx

I have seen the document for libgdx and managed to move the character and also to implement bounds but the document does not show how to implement jumping. I have downloaded the superjumper demo code ...
4
votes
1answer
864 views

Mario like jumping and landing in box2d, help

I've been trying to get Mario type jumping/landing in a Box2d game and it's been giving me some trouble. Results: Player loses velocity on landing Desired Results: When player lands it will continue ...
1
vote
2answers
279 views

limiting jump forces to achieve a maximum jump height [duplicate]

A player and the world are modeled using a physics engine. Jumping is modeled by applying a vertical upward force to the player's physics body when the jump button is pressed. The upward force is ...
11
votes
3answers
997 views

Impulsioned jumping

There's one thing that has been puzzling me, and that is how to implement a 'faux-impulsed' jump in a platformer. If you don't know what I'm talking about, then think of the jumps of Mario, Kirby, and ...
0
votes
2answers
204 views

How can I improve my Animation

The first approaches in animation for my game relied mostly on sine and cosine functions with the time as parameter. Here is an example of a very basic jump I implemented. if(jumping) { height = ...
7
votes
1answer
1k views

Jump handling and gravity

I'm new to game development and am looking for some help on improving my jump handling for a simple side scrolling game I've made. I would like to make the jump last longer if the key is held down ...
0
votes
2answers
308 views

Jumping Logic Issues [duplicate]

Possible Duplicate: How to make a character jump? I have been working on a 2D platformer and am trying to implement jumping. At the moment I have it simply teleporting upward and then ...
1
vote
1answer
137 views

Jump pads problem

I'm trying to make a character jump on a landing pad who stays above him. Here is the formula I've used (everything is pretty much self-explainable, maybe except character_MaxForce that is the total ...
2
votes
2answers
2k views

Smooth vector based jump

I started working on Wolfire's mathematics tutorials. I got the jumping working well using a step by step system, where you press a button and the cube moves to the next point on the jumping curve. ...
1
vote
2answers
908 views

3D Studio Max biped restrictions?

I have a stock biped character in 3D studio max which has a jump animation. The problem I have with the jump animation is that there is actual y offset happening inside it which makes it awkward to ...
28
votes
2answers
27k views

How to make a character jump?

I am currently making a game in C# using Direct X 9.0. The game remake is Donkey Kong NES. I have nearly everything completed, but I am having problems with the physics of Mario's jump. I have ...