# Make my player not move with moving platforms

Get help using Construct 2

### » Sun Oct 21, 2012 5:53 pm

The way my game works is by keeping the player in the same place and spawning random platforms. But the platform behaviors are built to move the player when they're moving. How can I get around this?

ExampleDraspur2012-10-21 17:53:39
B
53
S
20
G
11
Posts: 434
Reputation: 11,232

### » Sun Oct 21, 2012 6:04 pm

I think you just need to subtract their velocity from the player's velocity, when he is on one.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,455

### » Sun Oct 21, 2012 10:24 pm

[QUOTE=sqiddster] I think you just need to subtract their velocity from the player's velocity, when he is on one.[/QUOTE]

I wasn't using physics for them, simply X - 3 every tick
B
53
S
20
G
11
Posts: 434
Reputation: 11,232

### » Mon Oct 22, 2012 10:49 pm

anyone?
B
53
S
20
G
11
Posts: 434
Reputation: 11,232

### » Mon Oct 22, 2012 11:37 pm

Just make a boolean that goes false when Player is in collision with the moving platforms and add it the all your movement events
" If NotOnMP is false "

Cheers !
B
35
S
16
G
16
Posts: 2,223
Reputation: 16,591

### » Mon Oct 22, 2012 11:46 pm

[QUOTE=Whiteclaws] Just make a boolean that goes false when Player is in collision with the moving platforms and add it the all your movement events
" If NotOnMP is false "

Cheers ![/QUOTE]

The only movement I'm using is jumping, theoretically the player needs to "slide" across it... Could you elaborate?
B
53
S
20
G
11
Posts: 434
Reputation: 11,232

### » Tue Oct 23, 2012 1:24 am

Don't Make the player move , make the platform move and add to the platforms the solid behavior !
B
35
S
16
G
16
Posts: 2,223
Reputation: 16,591

### » Tue Oct 23, 2012 1:43 am

[QUOTE=Whiteclaws] Don't Make the player move , make the platform move and add to the platforms the solid behavior ![/QUOTE]

What, like move all the platforms down, that seems a bit ineffeceint... The platforms have jump through behavior.

I like your use of exclamation!
B
53
S
20
G
11
Posts: 434
Reputation: 11,232

### » Tue Oct 23, 2012 3:27 am

[QUOTE=Draspur] I wasn't using physics for them, simply X - 3 every tick[/QUOTE]

You should check out the manual entry for Delta time ('dt')..

but anyway, have you tried doing the same thing to the player as to the platform?
when the player is on the platform, You can also have player X -3 every tick.

!keepee2012-10-23 03:28:12
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

### » Tue Oct 23, 2012 8:00 pm

[QUOTE=Draspur] I wasn't using physics for them, simply X - 3 every tick[/QUOTE]

You should check out the manual entry for Delta time ('dt')..

but anyway, have you tried doing the same thing to the player as to the platform?
when the player is on the platform, You can also have player X -3 every tick.

![/QUOTE]

Tried that but its not very smooth, delta time causes the same problem... Draspur2012-10-23 20:03:56
B
53
S
20
G
11
Posts: 434
Reputation: 11,232

Next