Hello again. My last article got the crapping on it deserved, but im back with more information.

Now just a minute ago I made moving platforms in my game that worked perfectly.

In order for this to work you will need a custom engine. If you havent figured out how to make one, well get with the times.

Make sure that your custom engine works kinda like this

ALWAYS - Set X pos of Character to X pos + Character Value B
- Set Y pos of Character to Y pos + Character Value A

Left Movement
Repeat While LEFT KEY is pressed - Set value B to -5.

Right Movement
Repeat While RIGHT KEY is pressed - Set value B to 5.

Make sure you have 4 detectors: Bottom, Left, Right, Top.

ALWAYS - set positions of all 4 detectors at 0,0 from your Character.

Bottom Detector is overlapping a back ground - Set value A of Character to zero.

Okay, lets get serious with it.

Now make your moving platform. Make its movement static, And use this event for its X positioning.

Always set X pos of platform to X pos of Platform + platform Value B.

Make 2 detectors that are black boxes, both 32 by 32 pixels. Draw in the middle arrows indicating which direction there for. Name them the left and right bouncers. The Left bouncer has an arrow that points to the left, The Right has an arrow that points to the right. When the platform hits the left bouncer, it will go to the left and vice versa.

Now use these events to send the platform left and right continually.

Platform is Overlapping LEFT Detector(box with arrow pointing to the left) - Set value B of Platform to -3.

Platform is Overlapping RIGHT Detector(box with arrow pointing to the left) - Set value B of Platform to 3.

Bottom Detector is overlapping Platform

Set Value B of Character to Value B of Platform.

If you want it to go up heres what you do. Make 2 more detectors, they should look identical to the other bouncers. But these will be the Up and down bouncers. The Up bouncer will have an arrow pointing up, and vice versa.

Now you must do this event

ALWAYS- Set Y pos of platform to Y pos of platform + Value A.

When the platfrom collides with the up bouncer it should go up, when it hits the down bouncer it should go down.

Platform is overlapping DOWN bouncer - set value A to 3.

Platform is overlapping UP bouncer - set value A to -3.

Bottom Detector is overlapping platform - Set value A of Character to value A of Platform.

The reason you set value A or B to the value of the platform is to ensure they move with eachother.

Also include this event

Bottom Detector is overlapping Platform + Player pressed Button 1(what ever jump button is) - Set value A of Character to -7.

And be sure to make your platform long so its easy to land on while its moving.

Enjoy!