How do I infinite scoll with physics movement.

0 favourites
  • 7 posts
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • Hi guys,

    So I'm making a game where the player has to jump from one pole to another. The movement is done using impulse and the physics behaviour. The problem is that I fail to make it an infinite scroller. I looked at the Construct 2 scroller demo's, but the difference is that in those demo's the player always remains in one position whereas in my game the player moves.

    I tried applying several solutions like keeping the X position of the player static or instead of moving the player, moving the poles. Unfortunately, all my attempts have failed.

    Could someone help me? I would appreciate it greatly <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    Kind regards

    .capx file:

    filedropper.com/pole

  • I looked at your CAPX. Objects with physics only interact with other objects with physics and you only have one object with physics.

    You also need to check your image points as they are not centered which may cause problems.

    I am not real clear as to how the game is supposed to preform as an infinite scroller so I can't help much more sorry.

  • I looked at your CAPX. Objects with physics only interact with other objects with physics and you only have one object with physics.

    You also need to check your image points as they are not centered which may cause problems.

    I am not real clear as to how the game is supposed to preform as an infinite scroller so I can't help much more sorry.

    Thanks for pointing out the image points.

    The jumping from pole to pole does already work, so that should not cause any issues if I'm right. As an infinite scroller, I want the game to endlessly keep creating the poles and scrolling to the right.

  • OK. It looks like you are going about things the hard way.

    I would remove physics and us a platform behavior for your player and set everything else to solid.

    Why are you using physics?

  • OK. It looks like you are going about things the hard way.

    I would remove physics and us a platform behavior for your player and set everything else to solid.

    Why are you using physics?

    I'm using physics because I can easily move the player in the direction of the arrow with the impulse at angle action. I don't know how this would be achievable using the platform behavior. I'm going to look into it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can use set angle in platform behavior but I am just not sure how the game is to be played to give more feedback sorry.

  • Are you avoiding having the player eventually leave the right side of the map then appear on the left with a whole new level (you procedurally generated)?

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