Pixel Rounding only affects movements

0 favourites
  • 11 posts
From the Asset Store
Vintage steam pixels for your UI! 125 unique assets in a single pack!
  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I agree, this would be a handy addition to have.

  • I can look in to the size thing, but how exactly do you round an angle to the nearest pixel?

  • I can look in to the size thing, but how exactly do you round an angle to the nearest pixel?

    Maybe use that butt-ugly rotation algorythm that mmf uses when asked to "create rotated directions"?

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

  • I can look in to the size thing, but how exactly do you round an angle to the nearest pixel?

    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:

    <img src="https://dl.dropbox.com/u/105711543/Images/example.png" border="0" />

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

  • I don't understand why would you want Megaman to look uglier :\</p>

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

  • 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?

  • Oh. Sorry!

    No, it's just a cosmetic thing as far as I'm concerned.

  • Yeah I asked about the the rendering a few months ago. Ashley made a couple of replies:

    http://www.scirra.com/forum/rendering-scale-question-rsq_topic53800_post336524.html

    But this is the choice quote of the topic:

    could change this, but it could be quite complicated, and even modern phones can handle this kind of drawing so I would prefer to leave it as it is.edited><editid>alspal</editid><editdate>2012-10-06 23:50:19</editdate></edited>

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