1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

getting of a moving platform

Discussion in 'Programming' started by Dasse, Jan 20, 2020.

  1. Dasse

    Dasse Member

    Nov 5, 2017
    Hello !

    I have an issue with a horizontal moving platform problem.
    If I stand on the moving platform and it's heading left and I want to go of in the right direction, no probs.
    If I instead want to run along it to the left and dropping of in front of the platform it stops and my character as well.
    If I continue pressing the left key I can go a little to the left and drop down to the platform below.

    I want the platform to just continue to the left or right instead of stopping.
    What is wrong? :)


    Object (moving_platform)

    Create event:
    (Execute code) hspeed = -0.5;

    collision event (with a block)
    (execute code) hspeed = -hspeed;

    My character and under Object Properties:
    (Choosing the moving platform)

    Move to contact
    Applies to:

    Direction: direction
    maximum: 12
    against: solid objects


Share This Page