Load from URL - blurred

Get help using Construct 2

Post » Sun Nov 10, 2013 8:46 pm

How do I prevent blur observed when loading images from URLs into sprites that have a different image size than the image that got loaded from URL?
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Sun Nov 10, 2013 9:19 pm

Properties > Sampling > Point
B
10
S
1
Posts: 163
Reputation: 1,436

Post » Sun Nov 10, 2013 9:55 pm

It still gets blured. (Fullscreen scaling is off btw, if you now think about that).
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Mon Nov 11, 2013 12:54 pm

Hmm guess this is a bug. Gonna report it.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Mon Nov 11, 2013 2:15 pm

Okay, I have found the problem and wanna tell you in case you stumble over this as well:

I had my origin in bottom mid of the sprite and when loading the new image, it will be set at the bottom mid again. If you load an image with uneven width into an image with even width or the other way around, the image will start somewhere at xxx.5 pixels, leading to the blur.

So if you wanna load images of different size into another image, either set up the origin at one of the corners of the sprite OR set pixel rounding to on OR always fix the position after some movement happened (not while the movement is happening obviously), something like:
(sprite.imagepoint(0)-sprite.width/2)%1 not equal to 0: set sprite x to sprite.X-(sprite.ImagePointX(0)-sprite.Width/2)%1
if your original image has even width and the origin point is at bottom middle.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 28 guests