Vertical Platform Again?

Get help using Construct 2

Post » Fri Jan 13, 2012 7:13 pm

Hi everyone,

I have been through all 3 threads about the problem of jumping on vertical platforms and tried the examples, I would just like to ask will this get fixed in a future version or do we need to find some sort of workaround for it?. The problem with all 3 workarounds is that it doesn't work on slopes, parts of my level have moving slopes but I can't jump on it. I'm assuming that if the problem gets fixed then this problem will also be solved.

B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Fri Jan 13, 2012 7:20 pm

Why can you not jump on them? 9 times out of 10 there are ways to work around this. I have not seen the other threads though. but if you tell me the problem or provide a capx i'll take on the challenge
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Jan 13, 2012 8:29 pm

Thanks Smitchell

Here is my capx

http://dl.dropbox.com/u/57137706/test.capx

As you can see you cant jump on the conveyor belt or the sloped platform moving up and down. I have not yet implemented the workaround since I know it doesn't work for slopes. There's also the problem that the player moves slightly when on the moving slope.

Keys -

Arrow keys for left and right
Left shift for jump
B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Fri Jan 13, 2012 8:51 pm

Fixed it

http://dl.dropbox.com/u/51270524/PlatformFixed.capxsmitchell2012-01-13 20:51:49
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Jan 13, 2012 9:50 pm

Wow

Many thanks smitchell.

It didn't work for the objects going downwards but I've found a solution, with your code I was able to work it out. But my solution a bit jerky, is it possible for it to be smooth? Here the updated Capx

http://dl.dropbox.com/u/57137706/test2.capx

The problem is that when the moving platform moves down the collision between the player and the object keeps changing. So it's stuttering, it also sometimes automatically moves the player.
B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Fri Jan 13, 2012 10:15 pm

Here ya go

http://dl.dropbox.com/u/51270524/PlatformFixed.capx
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Jan 13, 2012 10:48 pm

It doesn't seem to work because even if you do set the player to be the same angle as the slope, when the slope moves down the player object is still a nano second behind so it bounces. Basically the player object is always one pixel behind the moving platform when it moves down. I think what needs to happen is both the player object and the moving platform positions need to be moved together at the same time when the moving platform moves downwards.
B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Fri Jan 13, 2012 10:51 pm

Yeah I can't seem to figure that one out though.

Basically you can hide it in animation. When its animated and walking you can have a sloped walk animation, So if you tilt the feet to that 45 degree angle it should look alright. sorry
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Jan 13, 2012 10:56 pm

No probs, you've been a great help smitchell

Many thanks
B
25
S
161
G
3
Posts: 51
Reputation: 18,702


Return to How do I....?

Who is online

Users browsing this forum: LeFuji and 21 guests