[Behavior] Emitter

Post your completed addons to share with the community

Post » Sat Jan 17, 2015 8:52 pm

Emitter

This behavior just spawns an specified object a bunch of times within an specified range. I use this to create explosions like when you destroy Robotnik in Sonic the Hedgehog, or to spawn a bunch of sprites.

Image

Demo Here

I did some search for someway to spawn multiple objets as sprites, first I looked at the Particles object but that one only spawns images.
After not finding anything I decided to write this emitter that would enable me to spawn any object.

If you think you can help me pls do it and send me an email or post on the forum thread in Scirra´s site

Emmiter

Demo Here

Download Here

Demo Project

Check my Platform Plus Pluggin

Added on version 1.1
- New icon from somebody
- Repeat count with onFInished trigger
Last edited by hazneliel on Thu Jan 22, 2015 3:16 am, edited 3 times in total.
Image
B
15
S
4
G
4
Posts: 134
Reputation: 3,177

Post » Sat Jan 17, 2015 10:26 pm

Sounds great thanks for sharing this
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sat Jan 17, 2015 10:46 pm

Looks promising. Will check it out! Thanks for sharing! 😎
Image
Check out our start-up and configure your own helmet in true 3D.
B
44
S
11
G
11
Posts: 1,154
Reputation: 9,988

Post » Sun Jan 18, 2015 10:12 am

This is quite Neat I used instance variables and events to do the same, but behaviour could be cleaner and leaner to use. Will definitely check it out once off-mobile.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Wed Jan 21, 2015 8:01 am

Had a chance to try it - great stuff, quite useful.

One thing I'd like is the ability to set a repeat count - with an "On Finished" event - that would be perfect, like having a barrage of explosions finished of with a big one.

It would also be cool for something like, say, dripping slime - couple of drips drop and stop - then begin again, without the need of extra variables and such.

In fact I like this behaviour so much I made a new icon in the style of the native ones - perhaps you'll like it and use in future versions:
Emmiter Icon Demo.PNG
You do not have the required permissions to view the files attached to this post.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Wed Jan 21, 2015 2:57 pm

@Somebody nice icon : )
B
32
S
10
G
3
Posts: 310
Reputation: 6,081

Post » Wed Jan 21, 2015 10:05 pm

Awesome! I like the icon very much, I spent almost 2 hours just looking for an icon xD

I will implement your ideas as soon as I get time to work on it, I hope next week I have it done, those are very nice features, Thanks for bringing this to my attention.

[Just updated a new version with the icon and the repeat count]
Image
B
15
S
4
G
4
Posts: 134
Reputation: 3,177

Post » Sat Jan 24, 2015 9:39 am

@hazneliel - this is awesome!

Image

But I think I found a possible bug? If I add it as a family behaviour and try to change the repeat count using a variable like this:

Image

Then this happens:

Image

Any ideas?

I also took the liberty of assembling a c2addon file for your behaviour for easier installation :)
You do not have the required permissions to view the files attached to this post.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Wed Feb 18, 2015 4:17 am

Thanks @hazneliel.
This will come in handy :)
B
15
S
3
Posts: 19
Reputation: 944

Post » Wed Feb 18, 2015 4:49 pm

Very cool!! please keep it updated :D @hazneliel
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest