How do I create a tradmill platfrom?

0 favourites
  • 4 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Hi Guys,

    Need some help here, who can I do a tradmill platform where when you go on them you go a bit faster and if you try to jump back or walk back that you go slower.

    Thanks in advance.

  • Assuming you are using a movement behaviour like platformer you can do something like.

    Is player overlapping treadmill

    Sub event If player is not mirrored

    - Player-Platform set maximum speed to 600(or whatever)

    else -- Player-Platform set maximum speed to 300(or whatever)

  • If you're using Platform behaviour, I would use Set Platform vector X to push the player back (-) or forward (+) depending on which way the treadmill goes, but still allow them to move against the treadmill's direction of movement if they hold the button down

    + Player: Is overlapping Treadmill at offset (0, 1)

    -> Player: Set Platform vector X to Player.Platform.VectorX - 64

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks Guys for the quick reply,

    I managed to follow calminthenight way and it work great with little tweak on the values of-course.

    Thanks for the help.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)