[PLUGIN] Canvas

Post your completed addons to share with the community

Post » Sat Feb 25, 2017 10:08 am

using canvas plugin i draw line, can i apply physics behaviour to line. if not how to draw a line and apply physics behaviout to it.
B
14
S
4
G
1
Posts: 8
Reputation: 1,368

Post » Sat Feb 25, 2017 10:25 am

how to apply physics behaviour to the line draw using canvas plugin.
B
14
S
4
G
1
Posts: 8
Reputation: 1,368

Post » Sat Feb 25, 2017 10:39 am

vikash2k2jsr wrote:how to apply physics behaviour to the line draw using canvas plugin.


Please don't bump your own post after just 20 minutes.

The users who usually offer help come from many different time zones, so a little patience is required.

It is generally accepted that a 'bump' is OK if you have not had a response after 24 hours.

Thanks.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,484
Reputation: 59,754

Post » Sat Feb 25, 2017 11:09 am

If you want a line with physics then instead of using this plugin use a Sprite to be your line.

Make the origin on the sprite on the center left. Then position the sprite to the first point. Then set its angle toward the second point and make its width the distance between the two points. The height of the Sprite is the line thickness.
B
94
S
33
G
113
Posts: 5,354
Reputation: 73,269

Post » Sun Feb 26, 2017 10:09 am

thanks for ur reply. i used these steps in my game. but using this we can make only straight line. in my game i have to draw lines of different shape and angles. like curves ...
B
14
S
4
G
1
Posts: 8
Reputation: 1,368

Post » Mon Feb 27, 2017 9:22 pm

A curve can be approximated by a bunch of lines so you either can do that or another way would be to use a tilemap with 1x1 tiles.
If you make the size the same as the canvas and loop overall the pixels and set the tile if it's a certain color after a pretty good delay you'll have it colliding with what you drew.
B
94
S
33
G
113
Posts: 5,354
Reputation: 73,269

Post » Tue Feb 28, 2017 12:44 am

The download link for the plugin does not seem to be working for me. Not sure if it's a dropbox issue or if there's an issue with the file but I would like to download this plugin if someone could assist me.
B
1
Posts: 1
Reputation: 127

Post » Tue Feb 28, 2017 8:33 am

Soradik wrote:The download link for the plugin does not seem to be working for me. Not sure if it's a dropbox issue or if there's an issue with the file but I would like to download this plugin if someone could assist me.


The dropbox download links are still working - I've just tested them both successfully.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,484
Reputation: 59,754

Post » Thu Mar 02, 2017 7:17 am

It isn't working for me as well.
I tried on Edge, FireFox and Chrome.

I even tried opening Internet Explorer but it just crashed...
B
67
S
37
G
13
Posts: 241
Reputation: 12,760

Post » Thu Mar 02, 2017 9:24 am

If you are referring to the first post by R0J0hound on page 1 of the canvas.zip dropbox link then it is still working for me - downloaded and unzipped fine.

Don't know what else to say. Maybe R0J0 can provide an alternative link.

Are there any messages in the browser error console?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,484
Reputation: 59,754

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest