Sub-pixel calculations.

Get help using Construct 2

Post » Sun Jun 29, 2014 1:54 pm

Hello,

Is it possible to turn off Construct's sub-pixel calculations? Should I just round the values every tick for the relevant objects?
B
7
S
1
G
1
Posts: 11
Reputation: 755

Post » Sun Jun 29, 2014 2:41 pm

If you mean for rendering, then the project Properties bar does support Pixel rounding (change from Off to On). However, for calculations I believe you'll have to use rounding via ceil(your value), floor(your value), or round(your value).
"Construct 4 lets YOU make advanced games! (they wont run anywhere)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
124
S
42
G
17
Posts: 2,228
Reputation: 19,893

Post » Sun Jun 29, 2014 3:23 pm

Does this have any side-effects? For example differences in different resolutions?
B
7
S
1
G
1
Posts: 11
Reputation: 755

Post » Sun Jun 29, 2014 3:36 pm

The pixel rounding at render? I don't believe so, all it does is stop things from rendering at sub-pixel amounts by rounding to nearest whole pixel.
"Construct 4 lets YOU make advanced games! (they wont run anywhere)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
124
S
42
G
17
Posts: 2,228
Reputation: 19,893


Return to How do I....?

Who is online

Users browsing this forum: Christmas, dop2000 and 46 guests