Bug Issue: Collision off by one pixel in Simple Physics mode

Pages: 1


  • Junior Stencyler
January 23, 2019, 12:04:31 pm
Note: I am actually using Stencyl 4.0.0 (b10240), not Stencyl 3.5. I also replaced sw.jar in the install folder with the one linked in this thread: http://community.stencyl.com/index.php/topic,58014.0.html

I set up a project with the following settings changed from the default:
Physics: Simple
Default Scale (for importing/editing graphics): 1x
Project Scales: Everything unchecked except for 1x

The project contains two actors: a moving red 17x16 pixel block, and a black 16x16 pixel block. When the red block collides with the black block, there is a noticeable one-pixel gap, as seen in this picture:

I tested the project in HTML5 only.

It seems like it might actually be a drawing issue rather than a collision issue because the problem does not go away if the red block's hitbox is changed from 17x16 to 16x16. However, if the *image* of the red block is changed to a 16x16 image, the problem seems to disappear. Additionally, the "Project Scales" setting seems to affect the issue for some reason, even though the game is running at 1x. The issue goes away if I enable high-resolution assets.

Here is a download link for the project:


  • Master Stencyler
  • *
January 23, 2019, 04:13:49 pm
Might be related to the issue I posted here:

Pages: 1


  • Reported
    January 23, 2019, 12:04:31 pm
  • Updated
    January 23, 2019, 04:13:49 pm

  • View Status
  • Type
  • Status
  • Priority
  • Version
    Stencyl 3.5
  • Fixed in
  • Assigned to
  • Category