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
21
S
8
G
6
Posts: 346
Reputation: 4,891

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: 488
Reputation: 11,948

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,674

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: 488
Reputation: 11,948

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,674

Post » Tue Jun 04, 2013 2:08 pm

Squiddster, did JohnnySix's example solve your problem?
B
37
S
6
G
1
Posts: 301
Reputation: 2,860

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
92
S
31
G
24
Posts: 3,191
Reputation: 32,674

Previous

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests