[Behavior] jj_pinEx

Post your completed addons to share with the community

Post » Fri Nov 25, 2011 7:47 pm

Hi! I finished testing the following plug-in. This time it's only a modified Pin.
Added:
1. type: pin by angle, pin by distance and pin by distance&angle.
2. destroy together: destroy pinned object when destroying a behavior instance.

I used it to create a behavior for meteorites and other bodies, which revolve around its axis and moving in a straight line. Maybe it could have been done differently, but I could not come up as ... The default behavior is not allowed to repeat Pin this effect, since the angle is also changed following the pinned object.

So:
1. Create a sprite of meteorite (for example) with Rotate behavior.
2. Create a hidden sprite with Bullet behavior.
3. Add to meteorite a jj_pinEx behavior and set type "by Distance" and in eventsheet set the hidden sprite as a pinned object of your meteorite.

Installing: unpack folder from jj_pinEx.zip to the behaviors directory of your C2 html5 exporters.
B
4
S
1
G
1
Posts: 36
Reputation: 949

Post » Wed Dec 07, 2011 4:20 pm

This does not work with construct 2 r70smitchell2011-12-07 16:20:40
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Wed Dec 07, 2011 5:02 pm

@smitchell

I've just tested this with the pin example that comes with C2 and it seemed to work for me. I just removed the default Pin behavior and added this one and re-added the pin event.

Do you get any error messages?
zenox982011-12-07 17:15:39
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,839
Reputation: 48,279

Post » Wed Dec 07, 2011 6:07 pm

Nevermind, i was being dopey :P i put it in the plugins folder when its a behaviour
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Fri Jan 20, 2012 5:00 pm

for my plugin list, its the only addon i dont really understand

could you add a little description on what it does?xeed2012-01-20 18:45:31
B
15
S
3
G
5
Posts: 396
Reputation: 4,977

Post » Wed May 02, 2012 12:38 am

I have a question, I have a text box displaying the enemy's health. When I destroy an enemy I want that text box to be destroyed too.

Is that what "destroy together" could possibly achieve for me?

EDIT: Forget it, I just put in another action...still a cool plugin though lol =]coreo8812012-05-02 00:56:11
B
4
Posts: 4
Reputation: 490


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 6 guests