Questions tagged [moving-platforms]

A moving surface in a game that can be stood on. Can move back and forth, along a track, or in any other way that serves to kill characters just as often as it helps them.

Filter by
Sorted by
Tagged with
1 vote
1 answer
50 views

I want to change the direction of my platform from z direction to y direction alternatively

So basically, I want my platform to move first on the z axis from start position to end position, and then from ...
1 vote
1 answer
45 views

Momentum of a ball on a moving platform

I'm seeking information on how to implement something. I have a ball on a moving platform. The ball has a position and momentum. Here's a gif illustrating the situation: So the way it works is, the ...
0 votes
1 answer
66 views

Unity RB Controller Jitter on a Moving Platform

Brief Description: I have a RB based character controller that I want to move along with my Train platform (non physics based) when the player steps on it. Main Problem I manage to make the player ...
1 vote
0 answers
310 views

How to make a moving platform with Unity Tilemap?

I am trying to make a 2D level of a game and want to know how to move a specific tile left and right. All the level is designed on a single Tilemap. I want to move one platform left and right. How ...
0 votes
0 answers
132 views

How to move a Rigidbody2D to exactly match the movements of another body?

I'm recording the velocity of a Rigidbody2D using Animation Curves and I need to reproduce the same "movement" on an instantiated prefab (we really need "stuck like glue" movement ...
2 votes
0 answers
316 views

Player moves in a jerky way when riding on a moving platform

I have a moving platform script that travels between three positions. This works fine. I have a script that holds the player to a platform, and this works fine too. But when I parent my platform ...
2 votes
1 answer
1k views

Can I make children of a moving platform also work as moving platforms?

I have a moving platform that is a kinematic body, moving by a script, which is working as expected. I tried to parent it to another kinematic body, and make the child also function as a moving ...
0 votes
4 answers
2k views

Sticking the Rigidbody2D player to a moving platform without parenting & transform fiddling

I have a player entity with Rigidbody2D component and I have a moving platform which is a kinematic Rigidbody2D. Player movement is done by setting it's velocity (...
1 vote
1 answer
105 views

Can't get ThirdPersonController player to stick to a moving platform

I've followed 10+ tutorials on setting up basic C# code to allow a player gameObject to stick to a moving platform (even followed the code verbatim) and nothing works. I added some debug print ...
0 votes
2 answers
2k views

Why can't the player walk properly on the moving platform?

I'm making a platformer with Unity. In one of the scenes, I have a moving platform that moves back and forth. The problem is that the player can't walk (or sometimes jump) properly on the platform and ...
0 votes
0 answers
321 views

Why does my character slide off of the platform if I'm using MovePosition, but not if I'm setting transform.position

I have a platform which consists of a box collider, a rigidbody2d and a script which moves the platform through waypoints. I also have a Rigidbody2d character which can move around and jump. One of ...
5 votes
2 answers
1k views

Pathfinding over a moving platform

I have beens struggling with the following. In the game I am developing with Unity 5 in C#, I need to implement basic pathfinding over moving platforms (not with moving platforms). It means, I am not ...
1 vote
3 answers
117 views

Why moving platform script is not working?

I have some code attached to a moving platform: ...
0 votes
1 answer
83 views

How to properly create a handle for setting moving platform's target position in Unity?

As the title suggests, I am trying to set up a handle for setting target position of a moving platform. I have an empty GameObject(targetPos) and this is what I want to use for setting target ...
0 votes
2 answers
740 views

How to mitigate speed effects on moving platforms?

I am implementing horizontal moving platforms in my 2D platformer. The way it's implemented currently, when my player lands on a moving platform, he is reparented to it so that his position updates ...
0 votes
3 answers
2k views

Sticking to a moving platform

My character is not sticking on the platform when jumping on it, but I don't know why. I checked, and I have rigidbodys and colliders. The problem appeared when I moved the game to another hard drive. ...
2 votes
2 answers
697 views

Unity Engine 2D rigidbody inaccurate jumping whilst on a platform that moves downwards

I'm currently hard at work on a little platformer in the Unity3D engine, utilizing its 2D capabilities. Now I have been having a problem where eventhough an object is clearly grounded it somehow ...
0 votes
2 answers
1k views

Fixed distance between character and ground whatever slope value

I am working on character moving on any ground meaning whatever slope degree ,the result i got is the character does not moving on just shake in his place the following the code i wrote ...
2 votes
1 answer
3k views

Increasing friction or Adding force relative to transform position in Unity 2D?

Back again with a quick question! I have a few basic platforming mechanics going on in this scene. I have a prefab platform with an animation that loops back and forth between two different x ...
4 votes
1 answer
6k views

Moving a platform left to right with continuous movement

I made a 2D game with Unity, and I am trying to create a platform that will move from left to right continuously, but I don't know how to make the platform move a greater distance then -1 to 1 units ...
1 vote
1 answer
644 views

Tile Based Collision With Moving Platforms

I am developing a platformer using pure HTML/Javascript. After remaking my collision detection system with help from HTML5 platformer collision detection problem, I realized my moving platform ...
3 votes
1 answer
193 views

Decelerate moving platform at targets

I'm trying to make a moving platform move at a constant speed and then when it is near the target start to slow down, I have trying to do this with Lerp, but I'm not satisfied with the results because ...
0 votes
1 answer
391 views

Having to check collisions twice per game tic

I have vertically moving elevators (3 solid tiles wide) and static solid tiles. Each are separate entities and therefore have their own respective collision routines (to check for, and resolve, ...
6 votes
1 answer
952 views

Collision Detection problems for vertically moving platforms

Background My game is a static screen (ie, no scrolling) 2d platformer and my CD routine is split into 2 - after vertical movements, (ie, gravity etc) I check for collisions, and if they are detected,...
1 vote
1 answer
517 views

How to handle NPCs and other entities on moving objects like trains or planes [duplicate]

I was always wondering how trains or other moving platforms are implemented in games. For example: there a many games where you can walk on the back of a truck or on a train that starts to move. ...
0 votes
1 answer
569 views

BOX2D Kinematic Platform with parallax layer

I am using a kinematic body for my moving platform on x-axis, so I set the linear velocity to b2vec2(5,0). When the player jump on the platform, it works like it ...
9 votes
1 answer
9k views

How to handle physics of moving platforms in a platformer?

So after a few hours of searching on the internet, I have yet to find a pleasing answer on how to handle moving platforms in a 2d platform game. So I decided to make a simple prototype where you ...
6 votes
5 answers
8k views

Moving from XNA to Android

I've been using XNA to learn game programming for some time, and I'm interested in moving to Android. Having said that; the learning curve to get started seems to have ramped up exponentially. I ...
7 votes
2 answers
2k views

Correct order of operations in a platformer game loop

I've run into an issue with my Mega Man engine, and the structure of my game loop is making it very difficult to fix. With Rush Jet, or any falling platform, Mega Man needs to stay attached to the ...
2 votes
1 answer
453 views

How is a moving object like a platform represented in a 2d Tilemap

I'm having trouble understanding how I would implement a moving platform in the actual map file. Lets say its a file of character's and maybe the letter 'P' would stand for Platform. Then, how would ...
15 votes
3 answers
7k views

How do I handle moving platforms in a platform game?

I don't want to use box2d or anything, I just want simple moving platforms (up-down, left-right, diagonal and circular paths). My question is to handle the update order / control hierarchy so that the ...