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:
I do not have a separate camera object yet, however I wouldn't think I would need one for simple smooth scrolling. I have edited the examples you gave me to include vertical scrolling and they have the same jittering effect.
Yeah, that's a camera problem. If I get permission from the developer, I'll post an updated version of the pmo-with-vert.mfa and show you how the camera corrects that issue. I'll let you know when I get permission (since its not my code).
Originally Posted by Ricky CNC was just a super expensive version of TGF i thought
Yep. Pretty much. MMF 1.5 wasn't a release of TGF with extensions, CNC was. Then they added support for CNC extensions in TGF1, if I remember correctly... MMF 1.5 was a completely separate program.