I know I've been asking a lot of seemingly stupid questions but I can't for the life of me get them to work smoothly especially when scrolling vertically at the same time. Does anyone have a working example of this? I also want the player to be able to jump through them and down through them by holding down.
And if someone has a example from the article working I'd like to see that too. Again, I must be missing some as I keep falling through the platform even with that code.
Originally Posted by MrPineapple yeah well i had both at one point, which is why my player fell through moving platforms.. took me ages to work out what was wrong
Ah. I have nothing set to the player object. Just the PMO. Does anyone have a working example of moving platforms that you can jump through?
Originally Posted by Smirnoff Does anyone have a working example of moving platforms that you can jump through?
Hey Smirnoff,
Assault Andy, one of the administrators on this site, is very talented with the Platform Movement Object. He developed a core engine for our game, Captain Plokey, using the PMO. He also wrote one of the very first tutorials on the PMO back in 2003:
As for an example, I took Andy's core engine for Captain Plokey and inserted the graphics I created for my Custom Platform Movement engine. I also organized the code using the same system I had in the CPM engine:
This engine includes most of the features you'd want in a basic platform engine:
Walking
Jumping (variable height)
Springs
Conveyors
Vertical Moving Platforms
Horizontal Moving Platforms
Slopes (via the PMO)
If you want more advanced features (e.g. ladders, etc.), you may be able to strip some of them from my CPM engine (or others) and (with some modification) insert them into the PMO engine. Here's the CPM engine I'm working on: