Endless Runner - Player sinking into Platform/Moving it?

hi guys.
so I'm making an endless runner, but this one doesn't move automatically, you have to land on blocks that you jump on and then accurately jump to the next block, endlessly. but the problem I'm having is that when i preview my game, the player lands on the first block, sinks into it for a second, then jolts the block sideways, causing the player to fall to his doom. making the platform unmovable solves the issue, but as this is an endless runner, i kinda need the blocks to move from right to left. does anyone know why this is happening? any help would be greatly appreciated. Thanks :)

Answers

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited March 2014
    Hi @MarpCark, welcome, first post!

    If you use the "Change Attribute" behaviour on self.Position.X, then you can still move an object even if Movable is off.

    If Movable is on, then the block will react to gravity and physics collisions, thus getting pushed around.
  • -Timo--Timo- Member Posts: 2,313
    we have a free template on http://www.gsinvention.com/free-demos which can help you. its an endless runner (I think similar to yours)
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    If you're interested I have a tutorial here you might find helpful:

    http://www.jamie-cross.net/?portfolio=gamesalad-endless-runner-overview
  • MarpCarkMarpCark Member Posts: 121
    hi everyone, thanks for responding. ill give all of your suggestions a go and report back in a while :)
  • MarpCarkMarpCark Member Posts: 121

    hi guys, sorry about the late response. all of you're answers seem to point to the same place; the whole 'self.position.x' thing, which for some reason didn't make a difference and my actor continues to glitch into the blocks and push them around. I've tried everything such as changing the gravity, drag, density, friction, etc on both actors. non of which have seemed to work. I'm open to other suggestions. thank you again for responding :)

Sign In or Register to comment.