Mario: I can jump!
Shift to jump. You cannot jump onto the block yet (but you will collide with it. For a fun glitch, try and jump onto the block (the collision system will go haywire trying to push Mario out). Don't worry, it won't be in the final engine, this is just because there is no code stopping Mario from falling into a "wall" object.
also, here's a technical description of how my system works:
everything is kept in alterable values.
Mario's X/Y position and the height. at all times, a set of collision detectors on the ground moves around with Mario. every object is placed on the floor, you just specify the height in an alterable value and it's automatically moved up there. for cutscenes and similar, you can easily disable control of Mario's position, direction and animations. and if you need to move an object in the 3D space, you can change it (move around the X and Y it is on the ground, and raise or lower it). the "walls" are just flat tiles on the ground, 2 alterable values define where the wall starts and where it ends (below) for example the one here starts at height 0 and ends at height 32 (which is 32 pixels up from the ground). the collisions are done using the ground CD's, and the height is checked against the wall's height. also, where I've said "ground", this means ground as in the bottom floor. Even if Mario climbs up to level 128, the detectors will still be on level 0.
Attached File ( Number of downloads: 24 )
ml_engine.exe