Make my player not move with moving platforms

Get help using Construct 2

Post » 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
49
S
18
G
7
Posts: 429
Reputation: 8,893

Post » 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,400

Post » 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
49
S
18
G
7
Posts: 429
Reputation: 8,893

Post » Mon Oct 22, 2012 10:49 pm

anyone?
B
49
S
18
G
7
Posts: 429
Reputation: 8,893

Post » 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
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » 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
49
S
18
G
7
Posts: 429
Reputation: 8,893

Post » 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
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » 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
49
S
18
G
7
Posts: 429
Reputation: 8,893

Post » Tue Oct 23, 2012 3:27 am

your link now 404's so I might have misinterpreted your original post.

[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.

(but read about dt before you do that)
!keepee2012-10-23 03:28:12
B
28
S
8
G
1
Posts: 469
Reputation: 4,683

Post » Tue Oct 23, 2012 8:00 pm

[QUOTE=keepee] your link now 404's so I might have misinterpreted your original post.

[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.

(but read about dt before you do that)
![/QUOTE]

Tried that but its not very smooth, delta time causes the same problem... Draspur2012-10-23 20:03:56
B
49
S
18
G
7
Posts: 429
Reputation: 8,893

Next

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 30 guests