We’re rewarding the question askers & reputations are being recalculated! Read more.

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
15
votes
3answers
6k 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 ...
8
votes
1answer
6k 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 ...
7
votes
2answers
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 ...
6
votes
5answers
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 ...
6
votes
1answer
739 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,...
5
votes
1answer
712 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 ...
4
votes
1answer
4k 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 ...
3
votes
1answer
148 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 ...
2
votes
1answer
419 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 ...
2
votes
1answer
1k 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 ...
2
votes
2answers
394 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 ...
1
vote
3answers
57 views

Why moving platform script is not working?

I have some code attached to a moving platform: ...
1
vote
1answer
418 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 ...
1
vote
1answer
325 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
1answer
66 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
2answers
166 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
1answer
357 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, ...
0
votes
1answer
543 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 ...
0
votes
0answers
124 views

Character controller on moving platform

I have a 3D character controller on an moving platform up and down. I control the platform with script which only changes up and down movement: ...
0
votes
2answers
405 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 ...
0
votes
3answers
918 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. ...