Quantcast
Channel: Questions in topic: "jumping"
Browsing all 1225 articles
Browse latest View live

Register Ceiling hits while jumping

So I am new to C# and just messing with a 2D platformer. I have a script that controls the character, but when I jump and hit a ceiling it floats for a bit. I want to be able to test its position...

View Article


Rigidbody, jumping and gravity help

Hi, I'm making a small 2d game where you start on a small platform in the center of the screen with 4 other platforms, 1 in each corner. The aim of the game is to collect fruit while avoiding falling...

View Article


My jump code seems to be broken, the character's flags for jumping appear to...

var moveSpeed:float = 1.0; var y : float; var isJumping:byte = 0; var isOnGround:byte = 1; var maxHeight:int = 2; function Update () {//if the player is eligible to jump, pressing W will send them...

View Article

Using isGrounded with a RigidBody

So I needed my PlayerCharacter to have a rigidbody, and when using the built in character controller with a rigidbody it creates weird results. So I set out to create a charactercontroller around a...

View Article

Help with Character Controller Platform Physics

So I made a moving platform script, and it works great, except for two things. The first thing relates to collisions. If the first person character controller stands in the path of the platform while...

View Article


My cube can't stop jumping

If I press the jump button the cube jumps, but if I press the jump button again while its still falling(in the air) the cube will still jump. How do I make the cube only jump once from the floor and...

View Article

Jumping player

I want my player to jump once then land, but if I press the jump button again, the player will still jump in midair(while falling). Its a 2d, c# game. void Start () { } void Update () { if...

View Article

Detecting Collision for Jumping

Hi, I was looking to see how I would detect collision between two objects, my player and the floor. Im trying to give my player the ability to jump when they press the space bar, I tried this out at...

View Article


Trying to limit air velocity

I've been having a lot of trouble figuring out how to limit horizontal air velocity. For example, when I'm grounded I can do. if(IsGrounded() && !_isJumping) { _velocity = _rigidBody.velocity;...

View Article


Why is my object jumping to 0,0,0 coordinates?

Object seems to work fine unless I use the following function to return an object. Then it throws my object at 0,0,0 position? After searching for a possible solution I found that people seem to have a...

View Article

Jumping on top of an enemy problem

Hello, I have a Player parent object with a character controller and various child objects and a similar enemy with a box collider. I'm struggling to differentiate between the collision happening when...

View Article

My double jump script is not working

Hi my script isn't working but I cant figure out why. I can't jump in midair which is what I'm going for. I want to be able to jump twice, once from the ground and once in midair. Think Ghouls &...

View Article

Problem with rigidbody jumping off of platform.

I have a rather simple issue that I just can't figure out. I'm making a game where characters (rigidbody prefabs) walk by themselves and jump when they reach the edge of a platform. I have this working...

View Article


Jump heights are different on different devices

I'm creating a simple 3D game where the user touches the screen and it causes the character to jump. I've been testing on an android HTC One with a res of 1920 x 1080. Everything works fine. I've made...

View Article

Jumping ball jumps at random height when I press Space

I'm trying to make a 2D ball physics puzzle game. Where the player controls a ball through a maze type thing. When I make the ball jump, It sometimes jumps really high, and sometimes it barely gets off...

View Article


2D game with depth, basics?

Hello! I'm currently working on a 2D game with depth, something similar to [Castle Crashers][1]. I'm trying to do the basics first(character moviment, collisions, etc), what I have so far is this:...

View Article

How do I script Street Fighter style movement?

I'm relatively new to scripting, but I'm looking to create controls for a fighting game. I wish to have a 2D, side view control scheme(using Joystick axes, setup in Input Manager), where Horizontal-/+...

View Article


can stop character form double jumping

can't get character to only jump once new to scripting the point of the script was for him to jump then reset jump to 0 so he couldn't jump twice in the air but it only resets one time the character...

View Article

Midair movement with the character controller?

I'm working on a 3D platformer where the character needs to be able to move around and be capable of performing single and double jumps. I'm using the character controller and the example code on the...

View Article

Best Jump Source: Rigidbody or CharController

Which is best to adjust speed of going up and coming down? IS there any real preference?

View Article
Browsing all 1225 articles
Browse latest View live


Latest Images