Particles

hey there, simple question!

What would you guys recommend for making particle effects for corona sdk? 

theres alot to choose from, some of it seems outdated, just wanted to hear what to go for :slight_smile:

thanks

I don’t understand the question.

Are you asking what tools you should use?

-or-

Are you asking which of the 4 or 5 particle systems (built-in and community made) you should use?

mostly what tools i should use :slight_smile:

for creating on windows btw :stuck_out_tongue: no mac

Well, I have a tool:

https://sellfy.com/p/bWcY/

However, it is a bit dated.  That said, I’m working on a new version.

In the interim, you could use this free online tool:

http://onebyonedesign.com/flash/particleeditor/

And then load the particle definitions with my loader/converter:

https://sellfy.com/p/GWEz/

Then, just keep an eye open for announcements on my upcoming editor.

is there a guide to use this loader of yours? :slight_smile:

like how do i attach the emitter to an object instead of x,y coords, so that when the object moves, emitter moves along with it. and not overflow the screen with new emitters :smiley:

i tryed this :

shipEmitter = display.newEmitter(mainGroup, pex.loadStarling( nil, 0, 0 , “emitters/Starling/particle.pex”,{ texturePath = “emitters/Starling/”,altTexture = “texture.png” } ))

shipEmitter.rotation = 180   

  

local shipGroup = display.newGroup()

shipGroup:insert(ship)

shipGroup:insert(shipEmitter)

but the game crashes with no error report on it.

(the ship moves around the screen with a touch handler )

Guide Yeshttps://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/09/particle/PexTools.pdf

Moving Up to You :  It is easy.  Just use an enterFrame listener attached to the mover and have the listener move the emitter to match the position of the moving object (the mover).

What you tried is wrong and the guide doesn’t show that…  it shows this (page 5) as a basic call:

local emitter = pex.loadStarling( nil, 200, 100, "particle3.pex" )

Note: You don’t call display.newEmitter(), because the loader does that for you.  The loader creates a new emitter.

The Right Way

Now, assuming that:

  1. Your emitter definition is in folder: “emitters/Starling/”

  2. Your emitter definition is named “particle.pex”

  3. Your emitter texture is in the folder “emitters/Starling/”.

  4. The emitter texture name is: “texture.png”

You would do this:

local shipEmitter = pex.loadStarling( nil, 0, 0, "emitters/Starling/particle.pex", { texturePath = "emitters/Starling/", altTexture = "texture.png" } )

This will produce an emitter at position 0, 0 and place it in the default group (current stage).

The pex tool comes with a guide and a number of samples.  

If you don’t have these please tell me where you got pex loader so I can fix the problem.

i bought it from you :slight_smile:

reason tryed the code above was because i couldnt get it to work, so that the emitter followed my ship :slight_smile:

it worked! thanks alot. guess i just didnt understand the loader to begin with xD but its solved now, thanks alot, hope you come up with more fancy products like this in the future :smiley:

Is that, “The emitter worked”, or “I have it following my ship.”?

If you don’t have it following your ship yet, try something like this (may need to change to suit your needs):

local shipEmitter = pex.loadStarling( nil, 0, 0, "emitters/Starling/particle.pex", { texturePath = "emitters/Starling/", altTexture = "texture.png" } ) local ship = display.newCircle( 10, 10, 10 ) function ship.enterFrame( self ) shipEmitter.x = self.x shipEmitter.y = self.y end Runtime:addEventListener( "enterFrame", ship )

yes to both :slight_smile: it works smoothly . with the enterframe event you told me :slight_smile:

Hi. We just release Radiance. A windows tool to create particles for Corona.

https://marketplace.coronalabs.com/asset/radiance-particle-effect-creator

Regards

Tommy

I don’t understand the question.

Are you asking what tools you should use?

-or-

Are you asking which of the 4 or 5 particle systems (built-in and community made) you should use?

mostly what tools i should use :slight_smile:

for creating on windows btw :stuck_out_tongue: no mac

Well, I have a tool:

https://sellfy.com/p/bWcY/

However, it is a bit dated.  That said, I’m working on a new version.

In the interim, you could use this free online tool:

http://onebyonedesign.com/flash/particleeditor/

And then load the particle definitions with my loader/converter:

https://sellfy.com/p/GWEz/

Then, just keep an eye open for announcements on my upcoming editor.

is there a guide to use this loader of yours? :slight_smile:

like how do i attach the emitter to an object instead of x,y coords, so that when the object moves, emitter moves along with it. and not overflow the screen with new emitters :smiley:

i tryed this :

shipEmitter = display.newEmitter(mainGroup, pex.loadStarling( nil, 0, 0 , “emitters/Starling/particle.pex”,{ texturePath = “emitters/Starling/”,altTexture = “texture.png” } ))

shipEmitter.rotation = 180   

  

local shipGroup = display.newGroup()

shipGroup:insert(ship)

shipGroup:insert(shipEmitter)

but the game crashes with no error report on it.

(the ship moves around the screen with a touch handler )