[PLUGIN] Polygon (update 2013-04-23)

Post your completed addons to share with the community

Post » Sat Feb 23, 2013 3:06 am

@Yann thanks for clearing that

I'm going to figure out how to add colors.
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Sun Mar 03, 2013 1:09 pm

Thanks for this @Yann
slap it onto the flappy bird template...
bang it on google play with all the other shovelware...
sorted...
B
36
S
7
G
4
Posts: 322
Reputation: 8,170

Post » Sun Mar 03, 2013 7:55 pm

Can you do curves, been playing with it and looked at your videos but i can't figure out if you can add curved vertexes? Or make vertex curved (bezier)
B
24
S
11
G
5
Posts: 140
Reputation: 5,004

Post » Sun Mar 03, 2013 10:38 pm

@labithiotis
nope, it's strictly a "polygon" plugin. as in[quote=wikipedia]a polygon (pron.: /'p?l?g?n/) is a flat shape consisting of straight lines that are joined to form a closed chain or circuit[/quote]
If one day I feel good enough in js and if I find a good way to interface it in ACE, and if I find a good way to generate corresponding collision polygon, I might decide to make a "Shape" plugin.

But as you can see, there's many "ifs" (:

And if you don't need collision polygons, I suggest you look at the canvas plugin from R0J0hound


On another subject, I just updated the polygon plugin, I had left some bugs in the boundingbox calculations.

Enjoy (:
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Mar 03, 2013 10:58 pm

[QUOTE=labithiotis] Can you do curves, been playing with it and looked at your videos but i can't figure out if you can add curved vertexes? Or make vertex curved (bezier)[/QUOTE]

@labithiotis specifically you can make an arc with more than 30 vertexes
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Sun Mar 10, 2013 11:23 pm

Yann, thanks for that Plug-In... I appreciate your effort. Of course coming out of the polygon term and going to free-hand shapes (heh, OK, bezier would be just enough) could be even more wonderful!
B
11
S
3
G
3
Posts: 79
Reputation: 3,343

Post » Fri Apr 12, 2013 11:37 pm

Hey yaan ! Coll plugin you got there but what about multiple polygons ? How can I tackle this one ?
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Sat Apr 13, 2013 5:57 pm

@Whiteclaws simply add the object multiple times.

Hi @Yann thanks for the plugin. I've got a cool idea for a game with this plugin, but I'm stumped at some of the vertex math and was hoping you could help.

My .Capx attempt

Essentially I want to leave a a polygonal trail behind the character. My problem is the way the vertices need to be ordered to close the shape correctly.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Thu Apr 18, 2013 9:29 pm

@thehen I guess Yann didn't see this one.

For what you describe I would try a bunch of dummy objects following each other around like a snake.
Then for every x ticks do a for each ordered by the the objects instance variable "order" ascending, and then do a descending for each to get the vert back to the origin.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Fri Apr 19, 2013 3:16 am

@thehen
Indeed I missed this post
Here's a possible solution:
polyTrail.capx
The idea is to insert new segment by adding a vertex at the begining and end of the list
To fade the trail you just have to remove the pair of vertices in the middle.
Last edited by Yann on Sun Sep 14, 2014 7:22 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests