[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
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

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
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Wed Jan 18, 2012 3:55 pm

Very cool. Please keep on going!
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

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 Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Wed Jan 18, 2012 6:20 pm

strange and yet...wonderful.

please keep going sir.
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

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
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Wed Jan 18, 2012 10:51 pm

Yeah that could be very useful:)
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests