Pixel Rounding only affects movements

Discussion and feedback on Construct 2

Post » Tue Oct 02, 2012 6:52 pm

Is it possible to have the 'pixel rounding' option affect size and angle as well? Currently it only affects movement.

If the canvas is stretched using any of the fullscreen options, and an object is scaled or rotated, it doesn't go by "in-game pixels" but rather each pixel on your monitor, which looks weird for low resolution games (and might affect higher resolution games as well); kind of like Dorkly's sprite-based videos.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Fri Oct 05, 2012 4:06 pm

I agree, this would be a handy addition to have.
B
35
S
4
G
8
Posts: 65
Reputation: 6,106

Post » Fri Oct 05, 2012 6:47 pm

I can look in to the size thing, but how exactly do you round an angle to the nearest pixel?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Oct 05, 2012 8:36 pm

[QUOTE=Ashley] I can look in to the size thing, but how exactly do you round an angle to the nearest pixel?[/QUOTE]
Maybe use that butt-ugly rotation algorythm that mmf uses when asked to "create rotated directions"?
B
35
S
8
G
8
Posts: 532
Reputation: 6,868

Post » Fri Oct 05, 2012 8:50 pm

There are a few angles that work somewhat better for pixel art, but I doubt it would be worth the effort to add something to the editor.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Sat Oct 06, 2012 4:19 pm

[QUOTE=Ashley] I can look in to the size thing, but how exactly do you round an angle to the nearest pixel?[/QUOTE]
I think it just comes down to the way the canvas is resized/stretched. It seems C2 isn't drawing the images and then scaling them up; it's scaling up the images and then drawing them. I don't know how else to put it lol.

Here's a visual comparison:

The bottom row is what you'd expect in-game Megaman to look like at 1x,2x, and 4x at a 45 angle. No matter how big he gets, he appears exactly the same as he does at 1x resolution. That's good.

The top row is what Megaman looks like in C2 - That's not an angled Megaman scaled up, that's a scaled up Megaman at an angle. He's completely re-drawn in a different resolution!

(I know NES Megaman or any 8-bit sprite for that matter wouldn't be scaled or rotated - it was just a cleaner example. There are lots of 16 & 32-bit games with sprite rotation & scaling and the same thing applies.)
Tokinsom2012-10-06 19:06:24
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sat Oct 06, 2012 4:46 pm

I don't understand why would you want Megaman to look uglier :\
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Oct 06, 2012 4:58 pm

Ugliness is irrelevant, what's happening here should not physically be possible. At 2x resolution, 1 in-game pixel should be presented as 4 actual pixels, and those 4 pixels should move as one. That's not what's happening in C2 - it's basically re-drawing the image at a higher resolution! This means that anything being scaled or rotated has a different pixel ratio than anything that isn't. So by itself it looks pretty good..but in-game it's very similar to sprite clashing. Tokinsom2012-10-06 18:56:00
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sat Oct 06, 2012 5:12 pm

That was just a joke, but it seems you are serious about this issue. Does that mean you have an actual application for pixel-perfect rounding even at angles?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Sat Oct 06, 2012 6:51 pm

Oh. Sorry!

No, it's just a cosmetic thing as far as I'm concerned.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Cryptwalker, pablo7 and 12 guests