How do I draw a pixellated line?

Get help using Construct 2

Post » Sun May 04, 2014 12:57 pm

Hi,

I am making a game for the #lowrezjam - the limitations are that the game can not be large than 32 x 32 pixels and you can't use sub-pixels, there can only be hard pixel edges.

I want to draw an animated line between two points and this line gets drawn at different angles. When I do this with Construct, it always gives me something like this:

Image

But I need something like this:

Image

What do you guys think is the best way to go about this?

Thanks in advance,

cheers,

kbm
B
5
S
2
Posts: 29
Reputation: 483

Post » Sun May 04, 2014 1:03 pm

Set resolution of project to very low, next set sampling to 'point'
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

Post » Sun May 04, 2014 1:09 pm

delgado wrote:Set resolution of project to very low, next set sampling to 'point'


I already did this and the rest of the projects renders perfectly, but when I set a 1x1 px tiled background or sprite at an angle, it doesnt conform to the pixel structure of the game anymore.
B
5
S
2
Posts: 29
Reputation: 483

Post » Sun May 04, 2014 1:14 pm

Can i take a look at your capx ?
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

Post » Sun May 04, 2014 1:22 pm

delgado wrote:Can i take a look at your capx ?

Sure, here you go. I want the pink "tongue" line to render only in "full pixels" and not interpolate at angles as it does now.
You do not have the required permissions to view the files attached to this post.
B
5
S
2
Posts: 29
Reputation: 483

Post » Sun May 04, 2014 1:26 pm

fixed
You do not have the required permissions to view the files attached to this post.
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

Post » Sun May 04, 2014 1:32 pm

delgado wrote:fixed

THANKS! it works, however I compared our version and couldn't find out what you changed? would you mind to explain it to me?

thanks so much, you saved my day! <3

EDIT: Switching to "LOW quality rendering" did the trick.
Last edited by kbm on Sun May 04, 2014 1:35 pm, edited 1 time in total.
B
5
S
2
Posts: 29
Reputation: 483

Post » Sun May 04, 2014 1:34 pm

I change pixel rounding only, my pleasure :)
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests