Vertical Moving Platforms using the PMO extension?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • So there's an example file that comes with the PMO extension that teaches you how to use the extension (MMF 2\Examples\Platform Movement\). The example file has a tutorial for moving platforms using the PMO object as well. It teaches you about handling horizontal moving platforms but I want to know how to do the same but with vertical movement instead.

    So I basically copied the code for the Horizontal movement found in the example but replaced it with YCount, YSpeed, YCoordinate and YVelocity, etc. It seems to be working so far but the problem is when I stand on the platform it seems to have my player shake for some reason when going moving down, and then it just has the player drop down through the moving platform when it goes up.

    Is there a way to fix this?

    Thanks

  • Hi, I suggest you check out this example: Please login to see this link.
    It uses PMO and an approach which manages perfectly interaction with every possible moving platform (horizontal/vertical, but also diagonal, path movement, etc.)

  • Hi, I suggest you check out this example: Please login to see this link.
    It uses PMO and an approach which manages perfectly interaction with every possible moving platform (horizontal/vertical, but also diagonal, path movement, etc.)


    Nevermind, it works!

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

    Edited once, last by elvisish (October 14, 2018 at 9:24 AM).

  • If you read the official documentation of the object you can use the Set additional X (or Y) velocity action

    I have, and additional Y velocity doesn't work, the player falls through if the platform moves up and the character stutters if the platform moves down.

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

  • Made this moving platform example ages ago. Can't remember how it works, but it may help.

    Really nice, I'd forgotten about this example! Any ideas how to make the player get pushOut-ed when he's overlapping this background obstacle on the platform?

    Please login to see this attachment.

    I have an example here I've been working on using [MENTION=6771]DaveC[/MENTION] example with MoveSafely2 pushing the player out on the platform: Please login to see this attachment.

    It works if you sit still, but try walking into the backdrop as it ascends and the player will fall through the platform. I think this is because PMO adds extra velocity to the loop which MoveSafely misses. If you can come up with any way of adding a horizontal pushOut routine to your example (it never needs a vertical pushOut, since Sonic The Hedgehog dies if he gets squished on a vertical ascension;a death squash routine would be cool to add though!)

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

  • Here's a working version of [MENTION=7222]Caesar[/MENTION] 's version with pushout obstacles: Please login to see this attachment.

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

  • Here's a fixed version that works with multiple platforms, and has been reduced to one pushout routine due to condensed direction test (this can be refined much further by changing flags to multiplying a move value by -1): Please login to see this attachment.

    It gets ugly if you get trapped under the wall on the y axis moving upwards, but it's still elegant enough to keep you on the platform. A head test collider could allow for a "crush sonic" function to kill you, but this isn't implemented in this example.

    Please login to see this link.

    Please login to see this link.

    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!