Moving platforms
Monkey Forums/Monkey Programming/Moving platforms
| ||
Hello. Did anyone already make a platform game with moving up-down / right-left platforms? I'm trying to but can't get make it work properly. |
| ||
I suspect your issue is that your player stays still but the platform moves under him ? when left to right and the up and down probably makes it look all jumpy ? A number of ways to go about it, you could parent child the situation where your player becomes a child of the platform and its position then takes updates from the platform's movements, so essentially, Player lands on platform 1, each time the platform is moved check if the player is on it, if it is also move the player by the same amount in the given direction. little more to it some times depending on the situation but give that a try. |
| ||
Actually, my problem is to detect colision. I'm using a tile based colision for the scenario. But to platforms I'm using rectsoverlap colision. |
| ||
I have 2 examples on my blog. One with moving platforms. They turn in a circle. And a elevator example. They could show you how to do it. In the advanced section in the first post: http://www.monkey-x.com/Community/posts.php?topic=9290 |
| ||
Hey, Pakz. Very nice your blog. I add to my favorites! Thanks a lot, man! |