R149 - One pixel offset while using 8 direction

0 favourites
  • 4 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/47035927/temp/bug7.capx

    Steps to reproduce:

    1. Add the 8 direction behavior on any object on the canvas

    2. Preview

    3. Observe in the bottom a offset of 1 pixel

    Observed result:

    I'm studying and learning about the new features, while testing and reporting here some little issues.

    What is happening in this file is one pixel offset while using 8 direction behavior on objects, when previewing it in the browser.

    Expected result:

    Work without this offset, because it can glitch the graphics.

    Browsers affected:

    Chrome: yes

    Operating system & service pack:

    Windows 8.1

    Construct 2 version:

        R149

  • Closing as won't fix. Why would you use the 8 direction behavior instead of the platform behavior? It's not designed to be used in this way.

  • Ashley,

    That's an option to setup only left/right inside the behavior, so, I supposed it was designed to be for horizontal movements '-.-

    Taking a look in the description, you can easily do the same mistake as myself...

    <img src="https://dl.dropboxusercontent.com/u/47035927/temp/screenshot_8dir.png" border="0" />

    When all what I wanted was move object left and right in the canvas, while doing a study for space invaders.

    Do you have any concern about using the platform behavior to simulate the AI of 30 objects on the screen? Didn't tested it yet, but was trying to use the minimum possible to make viable the AI without spending any % of process than the necessary, targeting mobiles.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The 8 direction behavior is only designed to keep itself out of solids, not to be pixel perfect. The platform behavior has been tuned to be pixel perfect, so if you need that, use the Platform behavior.

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