I'd like to use this thread to discuss various platform engines (not necessarilly the one I'm putting together). I think there are a lot of great engines out there - each with its own merits.
There are three engines that I'd like to put up on this thread (at least to start with):
1. David Newton's excellent custom platform engine (from his tutorial)
2. Matthew Phizzlackea's custom platform engine (developed using concepts from an engine made by Arf)
3. Assault Andy's PMO (Platform Movement Object) engine
In time, I'll post each engine with the same graphics (to have a common denominator). Today, I can post Andy's PMO engine. This is the engine that Andy wrote for our game Captain Plokey. I've replaced the CP graphics with the ones I created for the Custom Platform Movement engine.
First, I need to say that this is just a fabulous engine! It doesn't have all of the features of the Custom Platform Movement engine (e.g. ladders, etc.) but it does have:
Walking
Jumping (variable height)
Springs
Conveyors
Vertical Moving Platforms
Horizontal Moving Platforms
Slopes (via the PMO)
It uses about a TENTH of the code that I have in the CPM engine to accomplish the same things. If you take a look at the code in the Events Editor, you'll see that I've organized Andy's code along the same lines as the code in the CPM engine. The code is very tight with no extra BS. Looking at an engine like this it makes you wonder why you shouldn't use the PMO for all of your basic platform needs!