line object bounding box also collision mask

For questions about using Classic.

Post » Sat Jul 18, 2009 11:00 pm

the line object's collision mask is the same as a bounding box, which is of course very inaccurate for collisions:
click image for cap

I've already posted it to bug tracker but maybe one of you clever souls has an idea for a temporary workaround that isn't some hellishly annoying sprite stretching or canvas pasting nightmare
cuz I needed to be able to know which line was clicked
in a close tangle of many
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Sun Jul 19, 2009 1:02 am

Ok looks Ill try to use interpolation on everything.

lerp(Line.Starty, Line.Endy, Sprite.Value('var'))

Anyway tried this with system compare but couldn't get it to work.

Here's a cap
[url:3bhr6u9p]http://files.getdropbox.com/u/666516/linelerp.cap[/url:3bhr6u9p]

edit:
Dont need distance(x1,y1,x2,y2)... dont know what the heck I was thinking with that.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests