Creating a PLUGIN

For questions about using Classic.

Post » Fri Apr 27, 2012 4:13 pm

Hi! recently i took a look over SDK because i need some Plugin what leaks on CC, is about creating a PLUGIN like Box but instead drawing a box this must draw a circle. My troubles starts when i try to find some DX9 functionality what helps to achive this, if some one had worked before over a plugin, please i need some help there.

help is about what is the list of functions used by contruct, essentially that, any other help still is welcome.

Circle plugin is needed for many reasons, and i think many other people will like it...

Thanks!

PD: Sorry for my english!
B
4
S
1
G
1
Posts: 69
Reputation: 863

Post » Fri Apr 27, 2012 4:16 pm

renderer->

that's where most/all of the drawing stuff is
also check drawing.cpp in other plugins on the svn to see how they did it.
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Apr 27, 2012 4:25 pm

thanks lucid I gonna check it

^_^
B
4
S
1
G
1
Posts: 69
Reputation: 863

Post » Fri Apr 27, 2012 4:35 pm

You could use the canvas object, and use some trig to draw a circle, or paste an object, and then update the collision mask.
Note: there is no way to fill something that's drawn.
You might even take a look at the canvas object itself, and see if there was a way to add a circle function.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Fri Apr 27, 2012 4:41 pm

Hmm interesting! i check it too... well i said a separated plugin for circle because exist a VRAM issue with the canvas Object, when it too big spend VRAM dropping FPS rate, idea is using circle plugin i.e. for a range marker in the LOS behavior or Turret behavior when you selects a unit using 'em, and some times range is about 1000x1000 pixel, so many canvas of that size hurts FPS, but stills i'll check canvas code if possible add circle drawing there!

Thanks for suggestions!Yaottabyte2012-04-27 16:42:30
B
4
S
1
G
1
Posts: 69
Reputation: 863

Post » Sun Apr 29, 2012 4:31 pm

You might also want to give this effect a try: http://www.scirra.com/forum/effect-ellipse_topic51611.html
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Wed May 02, 2012 2:47 pm

that so cool!, thanks i was looking for this, i'll delay circle plugin, i gonna experiment with your ellipse fx...

^_^
B
4
S
1
G
1
Posts: 69
Reputation: 863


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests