Jump Thru on tilemap Bug?

Bugs will be moved here once resolved.

Post » Thu Jan 08, 2015 2:05 pm

Problem Description
If a jumpthru behavior is put on a sprite, the character can jump to multiple platforms on top of one another and land on one of it.
If the same behavior is put on a tilemap and the character do the same, the character fall trough all platforms.

Attach a Capx
(see the attached Capx)
Description of Capx
There's one sprite with platform behavior, 3 yellow platforms(sprite) and 3 black platforms(tilemap) with jump-thru behavior

Steps to Reproduce Bug
  • Jump trough the yellow platforms, the character land on the second platform.
  • Jump trough the black platforms, the character fall trough all of them and land on the "floor"

Observed Result
The behavior is not the same

Expected Result
The behavior to be the same? :p

Affected Browsers
  • Chrome: YES
  • FireFox: YES

Operating System and Service Pack
Windows 7 professional SP1

Construct 2 Version ID
r190
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 8
Reputation: 216

Post » Thu Jan 08, 2015 2:35 pm

I set everything up on a snapped grid, and noticed if there is minor gap between sprite platforms, and tilemap. (approx 2px) Which causes transfer from sprite platform to tilemap platform to fall through.

If you extend the platform over the tilemap to get rid of minor gap - everything seems to work as it should.
Image Image Image
B
61
S
19
G
6
Posts: 325
Reputation: 7,944

Post » Fri Jan 09, 2015 10:21 am

I don't understand what you mean?
B
4
Posts: 8
Reputation: 216

Post » Fri Jan 09, 2015 7:46 pm

I included screen shots of what I was talking about. Still seems buggy.

After further testing.. It seems it works IF you move player from tilemap platform to sprite platform. If you go from sprite platform to tilemap platform, the player falls through. I also observed that the tilemap jump through's only work if you jump from tilemap first on the far right end of the layout. I don't suspect this is how it's supposed to work.
You do not have the required permissions to view the files attached to this post.
Image Image Image
B
61
S
19
G
6
Posts: 325
Reputation: 7,944

Post » Tue Jan 13, 2015 1:24 pm

Closing as won't fix: this is a very difficult problem, since the way Platform handles jump-thrus depends on the duration it's overlapping the same object. The yellow platforms are separate objects so it works correctly, but the tilemap is all one big object, so when it falls through it is always overlapping the object and therefore it treats it like falling through the same object.

Thick jump-through objects don't tend to work well for this reason. As a workaround, use thin jump-thrus along just the top part of the platforms/tiles. Alternatively make the player shorter.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Fri Jan 16, 2015 4:08 pm

Okay thanks for the answer.
B
4
Posts: 8
Reputation: 216


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests