Dynamically tilting slopes and jittery Platform behaviour

0 favourites
  • 3 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • Hi, I'm trying to get platforms that tilt left and right as the player is standing on them (basically the Angle is being changed via a Sine behaviour, making the platform go smoothly from Left-facing-slope -> Perfectly Flat -> Right-facing slope -> etc). The platform is a Solid (which seems to work better for this than Jumpthru).

    However, this causes the player collision object (which is an ordinary rectangle) to jitter up and down when standing on it, especially at more dramatically tilting angles. The Platform behaviour seems to think that it is falling for a frame or two. Does anybody know how to do this properly?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can try this - use an invisible sprite with platform behavior (lets call it PlayerBox) and remove platform behavior from the player. When player is on this slope (use Overlapping at offset to check this), set Player position to lerp(Player.X, PlayerBox.x, dt*10), lerp(Player.y, PlayerBox.y, dt*10) , this should smooth out the jitter.

    When player is not on the slope, simply set position to PlayerBox.x, PlayerBox.y

  • Thankyou, I'll try that!

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