R149 - One pixel offset while using 8 direction

Bugs will be moved here once resolved.

Post » Wed Nov 06, 2013 11:47 pm

Link to .capx file (required!):
https://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
Image
B
108
S
24
G
18
Posts: 1,373
Reputation: 22,824

Post » Thu Nov 07, 2013 5:22 pm

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.
Scirra Founder
B
399
S
236
G
89
Posts: 24,530
Reputation: 195,402

Post » Thu Nov 07, 2013 5:54 pm

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



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.TELLES08082013-11-07 18:19:33
Image
B
108
S
24
G
18
Posts: 1,373
Reputation: 22,824

Post » Thu Nov 07, 2013 6:40 pm

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.
Scirra Founder
B
399
S
236
G
89
Posts: 24,530
Reputation: 195,402


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests