[r110.2] Platform behavior floor collision

Bugs will be moved here once resolved.

Post » Sun Nov 25, 2012 4:26 pm

Sorry if the thread name isnt really clear, and i pointed the newest version but i noticed it on the r109 too.

The issue is that sometimes, the object using the platform behavior after landing, it will go a pixel inside the solids.

Heres some screenshots, one from my own project i started a few hours ago


And two from a game from the arcade which i forgot the name now (sorry )





On the first image you can see his little feet is perfectly aligned with the grass pixels, but on the second one it goes a pixel down into the grass.

Heres the capx
https://dl.dropbox.com/u/78939062/platformer.capx

and an exported link
https://dl.dropbox.com/u/78939062/C2Platformer/index.html

Tested on Rockmelt (which is pretty much Chrome) and Firefox, Windows 7, NVidia Geforce 9800 gt
B
12
S
2
G
2
Posts: 54
Reputation: 1,665

Post » Sun Nov 25, 2012 4:33 pm

Yeah it's been like that for a while..A quick workaround is to set your player's Y to the platform's Y whenever you land while overlapping one (provided your platforms' hotspots are at the top.) Only problem is you can see the player being pushed up a pixel a two every time you land if you look closely, but it's better than nothing.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Nov 25, 2012 4:57 pm

Oh that works, theres a very small flicker but i guess it wont be an issue. Its better than seeing the sprite inside the ground, and it gets really worse when the pixels are at 3x :|

Anyway, thanks for the quick reply :D
B
12
S
2
G
2
Posts: 54
Reputation: 1,665

Post » Mon Nov 26, 2012 7:33 pm

I've taken a look at this and done some work refactoring the Platform behavior to be more pixel perfect at small scales like this. So hopefully the next build will resolve it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests