Jagged Rectangular Blocks

Just started using Construct 2? Post your questions here

Post » Sun May 21, 2017 12:42 am

Long black rectangular blocks suddenly look a bit jagged on low and high end which screws up some effects. Size like 40 x 783, doesn't matter if native or stretched in Construct 2. Screws up some effects.

Anyone encounter this and find a solution?

They look jagged in layout view too before running the capx.
B
35
S
19
G
18
Posts: 242
Reputation: 12,732

Post » Sun May 21, 2017 11:21 am

Use a 9-patch for the rectangle, then you can resize it how you want without huge loss on quality.
Like my work? Fallow me on social media, and see my games on the arcade.
B
7
S
5
G
9
Posts: 298
Reputation: 5,367

Post » Sun May 21, 2017 8:30 pm

Apart from that, you can also try to set the scaling in the project properties to "Point", doesn't work well on all objects, but works fine with rectangles.
Note though that "Point" uses more CPU than "Linear".
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Mon May 22, 2017 7:38 pm

Thank you. I honestly don't know what it was, but it seems to have fixed itself.

It was messing with some of my custom fade effects.

The ninepatch is a great reminder.

Thanx!
B
35
S
19
G
18
Posts: 242
Reputation: 12,732

Post » Mon May 22, 2017 9:14 pm

For what it's worth it seems to have happened temporarily as a result of changing the PNGs in Photoshop. If you resize in PS, it creates a blank pixel border. I fixed that, but something else weird must have happened. I use PS to resize PNGs created in CS2 as it seems to create really large ones by default, 250 x 250.
B
35
S
19
G
18
Posts: 242
Reputation: 12,732

Post » Mon May 22, 2017 11:23 pm

If you are just looking for cropping images, you can do that in the C2 image editor.

Also, if you want to start with a smaller size than 250x250, just resize the blank starting sprite when creating a new Sprite before drawing.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests