Platform behavior skipping small walls

Report Construct 2 bugs here.

Post » Thu May 23, 2013 8:02 am

It's probably how the platform behavior handles steps(movement checks), slopes, and speed.

Platform is moving fast, so it's step interval is higher (checks ahead of itself specific amount of pixels) and based on a ratio it determines if it's possibly a slope they are traveling on.

Well, that's what I assume after playing with Custom Movement plugin a little bit.
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Sun Jun 02, 2013 3:51 am

I think this sorta works, as a workaround - it would be cool to specify a 'passable step' dimension for the platform object though.

Example

Download

Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Jun 02, 2013 1:17 pm

@JohnnySix I'm confused, it doesn't seem to work for me.

And yes, ultimately I'd like the platformer to be able to hop over a certain max size step at any speed.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sun Jun 02, 2013 6:55 pm

It skips steps below 12 pixels, you can adjust it so the gap is less.

I may have missed the point though, do you want it to stop when it hits a 1px wall, or move over it?

I removed the odd time when it stopped.
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sun Jun 02, 2013 9:32 pm

@JohnnySix ah, I see! Very nice!

For some reason it doesn't work at very low speeds, however.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Jun 04, 2013 2:08 pm

Squiddster, did JohnnySix's example solve your problem?
B
32
S
4
G
1
Posts: 266
Reputation: 2,426

Post » Wed Jun 05, 2013 12:04 am

@damjancd it seems to have, at least partially. However I'm not sure why it doesn't work at low speeds.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Previous

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest