[PLUGIN] SVG Shapes

Post your completed addons to share with the community

Post » Wed Jan 18, 2012 3:14 pm

Hello guys,

This is my first post here, and i am glad i can share this awesome program with you, all.

I really like this piece of software , so i decided to try develop some plugins. My main interest area is outside of gaming, somehow, so i decided to begin with some shapes... the basic ones..a circle and a path.

I am still working at these plugins, i ask myself if it will be some interest in them.
They can be used in games too!

I mean, for interfaces (they are scalable),huds, even some game elemnts could be some nifty pathes, for presentations, visualisations other kind of webapp .

Till i come here with plugin files please take a look at this demo (proof of concept):

Demo

Play around a bit, and i'm waiting here for comments.

Note: where is not webgl possible , the SVG layer doesnt appear in right place , i will investigate later ...

Thank you and good luck to all of you!

Narcis
B
2
Posts: 5
Reputation: 460

Post » Wed Jan 18, 2012 3:23 pm

Very nice. I can see lots of people being interested in this :)

Look forward to trying out the plugin(s) :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
126
S
29
G
73
Posts: 5,099
Reputation: 52,018

Post » Wed Jan 18, 2012 3:38 pm

wow, so, can you create the shapes on the fly with events? or do you actually load svg files? also, in the future might it be possible to texture the shapes?
Spriter Dev
B
96
S
21
G
12
Posts: 3,256
Reputation: 16,813

Post » Wed Jan 18, 2012 3:55 pm

Very cool. Please keep on going!
B
43
S
20
G
13
Posts: 723
Reputation: 14,635

Post » Wed Jan 18, 2012 5:06 pm

I prepare a surprise behaviour...
And of course, it's possible to add SVG Image , but it cannot make sense, the Sprite plugin is much faster and powerfull.
All is created at runtime, nothing to load.
Design the shape in whatever tool you wish to , and an event could be :
System->On start of layout : MyAwesomeShape-> set path data to "M100,20 c 125,478........."

After that you can animate some style and path itself to make cool morphs, drag the shape around, respond to click, dblclick, hover, end animation .

For each animation you specify a delay in ms., a number of repeat times, an ease type (linear, bounce, elastic, EaseOut....etc).

I will try to not implement any feature that is currently possible in standard plugins.

Ahh ... and i played a bit adding some physics to shapes or 8 dir movements and stuff. Once again, Construct 2 is verrrryyy nice ....!!

B
2
Posts: 5
Reputation: 460

Post » Wed Jan 18, 2012 5:21 pm

So are you using some sort of library or just the w3 standards?
Image ImageImage
B
164
S
49
G
140
Posts: 7,972
Reputation: 92,910

Post » Wed Jan 18, 2012 6:20 pm

strange and yet...wonderful.

please keep going sir.
B
77
S
30
G
20
Posts: 1,053
Reputation: 33,307

Post » Wed Jan 18, 2012 9:55 pm

I've posted a "behaviour topic" for followPath stuff here:

follow path

I think this is just usefull for game developers ... isnt it?


A fragment of the event sheet for the wierd demo ...



See you!
B
2
Posts: 5
Reputation: 460

Post » Wed Jan 18, 2012 10:02 pm

@Narcis13: well it could be useful and will even be more when you release the files for the plugin and the behavior.

The demos look super cool, and I'm sure a few users around would love to try those extensions in their own projects
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
269
S
97
G
67
Posts: 7,219
Reputation: 73,864

Post » Wed Jan 18, 2012 10:51 pm

Yeah that could be very useful:)
B
103
S
25
G
40
Posts: 1,876
Reputation: 31,885

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests