HTML5 canvas line creation

Get help using Construct 2

Post » Fri Oct 21, 2011 12:57 pm

Do the HTML5 Canvas line commands work inside plugins? I know this might be a stupid question but I thought I would ask before delving...

E.g. I have an object and this object draws itself as well as a few filled shapes made up of lines (...beginPath(), moveTo(x,y), pathTo(x,y) etc). Is this possible? If it isn't is their speedy alternatives?
B
21
S
7
G
2
Posts: 185
Reputation: 3,280

Post » Fri Oct 21, 2011 1:10 pm

Yes, you can use any of the canvas' drawing functions. However, you should not draw outside your object's bounding box - C2 assumes your entire object is displayed within its bounding box.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630


Return to How do I....?

Who is online

Users browsing this forum: Lof, YoHoho and 20 guests