Endless Runner - Player sinking into Platform/Moving it?
MarpCark
Member Posts: 121
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
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
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.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
http://www.jamie-cross.net/?portfolio=gamesalad-endless-runner-overview
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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