[r110.2] Platform behavior floor collision

0 favourites
  • 4 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • 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

    <img src="http://imageshack.us/a/img853/803/13639169.png" border="0" />

    And two from a game from the arcade which i forgot the name now (sorry <img src="smileys/smiley9.gif" border="0" align="middle" />)

    <img src="http://imageshack.us/a/img69/2825/32895595.png" border="0" />

    <img src="http://imageshack.us/a/img15/6360/39404251.png" border="0" />

    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

    dl.dropbox.com/u/78939062/platformer.capx

    and an exported link

    dl.dropbox.com/u/78939062/C2Platformer/index.html

    Tested on Rockmelt (which is pretty much Chrome) and Firefox, Windows 7, NVidia Geforce 9800 gt

  • 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.

  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)