Line Object and pixel collisions?

New releases and general discussions.

Post » Mon Aug 31, 2009 6:19 pm

Apparently (I might just be being obtuse here) the Line Object doesn't do pixel-perfect collisions, Is this true?
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Mon Aug 31, 2009 7:04 pm

thats true, I reported this as a bug/feature request before
it just treats it as a box that fits the line in it
the only solution if you need collisions is to use a sprite of a small black square
and set the image point to the middle left
and to set the StartXY of the line, you just set the position of the sprite
to set the EndXY you set the
Width of the sprite to Distance(Startx, Starty, Endx,Endy)
and angle to Angle(Startx,Starty,Endx,Endy)

and as long as you're only going to be using lines in 2d it will look the same, but with pixel perfect collision
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Mon Aug 31, 2009 7:13 pm

Thanks!. On with my recode!
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests