Particle Candy Effects Creator

Posted by krystian6, Posted on February 5, 2012, Last updated May 17, 2012

4 votes
GitHub URL: 
https://github.com/Cluain/particle-candy-corona-effect-helper

This is a simple helper project to ease the creation of Particle Candy effects.
I've been looking for a decent GUI to help me invent particle candy effects and couldn't find anything working, so I decided to go ahead and create my own GUI.

For now it allows to adjust only Particle Type properties [and without fancy FX or fields or anything like that], but if you would like to get more, please let me know.

I've tried my best to put proper & sane min & max values. If there's something not right with them, please let me know.

ver 0.5a
- Fixed issue with stable build incompatibility. Now works fine on both daily and stable builds.

ver 0.5
- Added sliders descriptions (copy from Particle Candy website - hope they don't mind) - toggle it on/off using button at the top
- Added new sliders for emission shape and random motion mode (more coming)
- Added scrollable view to facilitate more sliders and descriptions
- Corrected few slider ranges

ver 0.4
- Added Particle counter
- Added ability to set background image [edit configuration.lua]

ver 0.3
- Fixed issue with Boolean fields
- Added a slider for enabling/disabling color modifications of the used sprite

ver 0.2
- Added configuration.lua file to store default settings
- Added new tab to allow background color changes
- Improved logging to allow easy copy & paste of default values
- Exposed particle image configuration in configuration.lua file


Replies

horacebury's picture
horacebury
User offline. Last seen 1 hour 33 min ago. Offline
Joined: 17 Aug 2010

That's a brilliant idea - well done and thank you!

rmbsoft
User offline. Last seen 3 hours 39 min ago. Offline
Joined: 5 Apr 2011

Thanks so much! Way cool!

What about saving and loading effects? Then users could exchange cool effects!

rmbsoft
User offline. Last seen 3 hours 39 min ago. Offline
Joined: 5 Apr 2011

or display different backgrounds? Just an idea :)

krystian6
User is online Online
Joined: 6 Dec 2011

Hey guys.
I will try to implement the background change today. Will try to change the logging to something more usable for exchange. Loading and saving using simulator is difficult to make. But I think that doing a simple copy & paste into a .lua file will be enough :)

krystian6
User is online Online
Joined: 6 Dec 2011

Version 0.2 is up, enjoy :) [I didn't update the screenshots yet].
If you have other requests - let me know.

I will try to expose in configuration.lua ability to set sprite as background in next version.

iNSERT.CODE's picture
iNSERT.CODE
User offline. Last seen 1 day 22 hours ago. Offline
Joined: 7 Jul 2011

Brilliant idea. Thanks for sharing it too.

krystian6
User is online Online
Joined: 6 Dec 2011

I've moved repo to a new location on github, so if you've cloned the old one, either replace it or add new origin.

mkelly's picture
mkelly
User offline. Last seen 5 weeks 2 days ago. Offline
Joined: 4 Feb 2012

posted this link to my twitter account. exxxxxcellent! thanks!!!

jkrassman's picture
jkrassman
User offline. Last seen 4 hours 55 min ago. Offline
Joined: 4 Aug 2011

Hi, I am having problems and i am on the latest build on both corona and particle candy.

error:

...-corona-effect-helper-17f9c2f/lib_particle_candy.lua:1049: in function <...-corona-effect-helper-17f9c2f/lib_particle_candy.lua:1042>
?: in function <?:215>
Runtime error
...-corona-effect-helper-17f9c2f/lib_particle_candy.lua:1049: attempt to perform arithmetic on local 'timeScale' (a table value)

Regards, Joakim

krystian6
User is online Online
Joined: 6 Dec 2011

Hmm... I haven't seen this before.
I'm using latest particle candy, however I'm not on the latest corona SDK.
Any chance you could test it with build 2011.704?

Could you describe when is this happening?
After changing settings? Or somewhere else?
If after changing settings, could you post them?

Thanks,
Krystian

jwolverton
User offline. Last seen 13 weeks 1 day ago. Offline
Joined: 20 Apr 2010

Crashes for me too. Latest Corona on an iMac.

krystian6
User is online Online
Joined: 6 Dec 2011

would you mind trying on 2011.704 and let me know how it went?
I don't have access to the latest Corona SDK so it's difficult for me to debug it.
Once you give me some more information I might be able to do it.
Will need a tester with access to the latest SDK though.

krystian6
User is online Online
Joined: 6 Dec 2011

would you mind trying on 2011.704 and let me know how it went?
I don't have access to the latest Corona SDK so it's difficult for me to debug it.
Once you give me some more information I might be able to do it.
Will need a tester with access to the latest SDK though.

mroberti's picture
mroberti
User offline. Last seen 1 day 1 hour ago. Offline
Joined: 20 Nov 2010

Great app! I was always too lazy to make my own and here you've done such a great job!!! Keep it up! I'm enjoying using it so much!!

-Mario

krystian6
User is online Online
Joined: 6 Dec 2011

Hi,

new version is up.
Now you can disable and enable color modifications to the sprite set in configuration file.

krystian6
User is online Online
Joined: 6 Dec 2011

Another version is up.

I've added particle counter and ability to set image background.

horacebury's picture
horacebury
User offline. Last seen 1 hour 33 min ago. Offline
Joined: 17 Aug 2010

Any chance of adding physics properties to the particles so they can bounce off the sides of the arena?

Awesome work - keep it up :)

krystian6
User is online Online
Joined: 6 Dec 2011

Thanks :)
You will have to give me more details ;)
I haven't used any of the physics properties, so it's difficult for me to figure out values and properties for which I could create sliders ;)
Point me into direction and I will do my best to implement it :)

horacebury's picture
horacebury
User offline. Last seen 1 hour 33 min ago. Offline
Joined: 17 Aug 2010

Sorry, I think I was a bit new to the PC thing when I wrote that and was a bit of a knee-jerk.

Are you thinking of implementing any more of the emitter values or developing an FX designer?

krystian6
User is online Online
Joined: 6 Dec 2011

If you can point me into something you are interested in I may include it.
It's not a full implementation at the moment, mostly because I've implemented what I needed.
If someone needs something more I'll be happy to add some new functionality.

a.lepel's picture
a.lepel
User offline. Last seen 1 hour 47 min ago. Offline
Joined: 28 Nov 2011

Hi,

this is really great - I don't know how many cycles of

changing lua code <-> testing particles in simultor

I went through for all my particle effects. Thanks!

It works with the daily builds (I'm using 783), too.

A suggestion:

How about adding the following parameters:

particleTypeSmoke.emissionShape = 1
-- 0 = POINT, 1 = LINE, 2 = RING, 3 = DISC

particleTypeSmoke.emissionRadius = 340
-- LENGTH OF EMISSION LINE

Using these I would have an even better picture of my new particle effects in use.

Best,
Andreas

krystian6
User is online Online
Joined: 6 Dec 2011

Hello Andreas,

I'm very happy that you like it. I will do my best to add the feature you requested as soon as I can :)

Take care

multimarty
User offline. Last seen 2 days 15 hours ago. Offline
Joined: 19 Jan 2011

Great idea and great code.I bought particule candy months ago and played with it but got chilled by the number of test to do to get interresting particules effects.Thanks for sharing

a.lepel's picture
a.lepel
User offline. Last seen 1 hour 47 min ago. Offline
Joined: 28 Nov 2011

Suggestion: Put in the particleTypeSmoke.emissionShape and particleTypeSmoke.emissionRadius (most important things missing) and then sell it to X-PRESSIVE.COM, they really should ship your great tool together with their library!

Best,
Andreas

krystian6
User is online Online
Joined: 6 Dec 2011

Hey guys,

thanks, I'm very happy you find this piece of code useful.
I will try to implement all of your suggestions this week.
I've been using my tool a lot last few days and have found plenty of things missing or not set up correctly [especially the emission shape and velocity change].
I know Corona a bit more as well now + I have finally been able to afford the subscription so it should be a bit easier to use.

horacebury's picture
horacebury
User offline. Last seen 1 hour 33 min ago. Offline
Joined: 17 Aug 2010

Krystian, would you contact me on horace {aaattt} Gee! mail [the usual] com, please? I have something to discuss which you might be interested in...

krystian6
User is online Online
Joined: 6 Dec 2011

Horace I've tried contacting you, but mail got rejected.
You can reach me at krystian (on) clua.in

krystian6
User is online Online
Joined: 6 Dec 2011

Hi guys,

version 0.5 is up.
Some of your suggestions made into this commit.
Expect another update soon - plenty of changes coming:
- multiple particle types within single emitter,
- emitter positioning
- sprite/image sheets support
- fx fields [might not make it to the next release]
- physics [might not make it to the next release]

Hope you'll enjoy.

a.lepel's picture
a.lepel
User offline. Last seen 1 hour 47 min ago. Offline
Joined: 28 Nov 2011

Thanks a lot!

emissionShape and emissionRadius are great!

A few issues still exist, e.g. with:

a)

DefaultProperties.autoOrientation=false
DefaultProperties.useEmitterRotation=false

If you set these in configuration.lua = false they are still true in the app. You have to work the slider back and forth do set these to really false.

b)

If you click "test" a second time, the app crashes.

c)

Some weird thing: my particles are only displayed half the size (on the old iPhone and on iPad) as when I use the same values in my apps. Strange, but right now I don't have the time to look into it.

Thanks a lot for your effort!
Best,
Andreas

mroberti's picture
mroberti
User offline. Last seen 1 day 1 hour ago. Offline
Joined: 20 Nov 2010

Wierd, the latest build doesn't work for me. I get an error:

WARNING: Cannot transition to a scene that does not exist. If you called storybo
ard.removeScene() on a scene that is NOT represented by a module, the scene must
be recreated before transitioning back to it.

I'm using Daily Build: 2012.797

:(

That's when I hit "TEST" and nothing shows onscreen.

-Mario

krystian6
User is online Online
Joined: 6 Dec 2011

Hey guys,

I will try to fix issues you have mentioned this evening.

Krystian