How do I infinite scoll with physics movement.

Get help using Construct 2

Post » Sun Jan 22, 2017 1:02 pm

Message: Patotechnology can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
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 :)

Kind regards

.capx file:
http://www.filedropper.com/pole
B
4
S
2
Posts: 8
Reputation: 619

Post » Sun Jan 22, 2017 1:11 pm

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.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Sun Jan 22, 2017 1:29 pm

lamar wrote: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.
B
4
S
2
Posts: 8
Reputation: 619

Post » Sun Jan 22, 2017 1:54 pm

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?
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Sun Jan 22, 2017 3:17 pm

lamar wrote: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.
B
4
S
2
Posts: 8
Reputation: 619

Post » Sun Jan 22, 2017 3:34 pm

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.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Mon Jan 23, 2017 3:54 am

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)?
B
50
S
14
G
4
Posts: 189
Reputation: 5,508


Return to How do I....?

Who is online

Users browsing this forum: Laura_D, plinkie and 21 guests