Question Re json File Properties in Emitter

Hi All,

I have a question about one of the properties of a json file. In particular, I will be talking with regard to the Emitter Viewer (in Graphics) in the Corona SDK Sample Code.

So the json files contain a property called “speed”. Now after playing around with the property, I soon realized that it controls the initial X velocity of the particles. And “gravityx” and “gracityy” obviously control the acceleration in the X and Y directions…

Here’s my problem: No matter how hard I tried, I cannot find a parameter to control the initial Y velocity of the particles!

Am I missing something here? Is there a magic trick to achieve this? Because I can’t find a way to set the initial Y velocity of the particles, which sucks :frowning:

I tried inserting “speedy:50”, and “velocityy:50”, but that didn’t do anything.

Please Help!

Thanks in advance :slight_smile:

​KC

docs.coronalabs.com/api/type/EmitterObject/index.html#emitter-pointlinefield

@scottrules44

Yes, I am aware of this.

Can you be so kind as to point out exactly which variable controls the initial Y velocity of the particles?

Thanks.

Their is not a initial y velocity. Particles are not physics bodys.

What are you trying to achieve.

@scottrules44

Their is not a initial y velocity. Particles are not physics bodys. 

Ok, thanks for answering. I must say, however, that I am disappointed in Corona for not allowing the developer the modify the initial Y velocity…

I am trying to emulate confetti falling in a victory scene. Although I can still use “gravityy”, I much rather have a constant negative Y velocity and have gravityy = 0, but I guess setting gravityy is has a close enough effect…

You can away just make your own particles. Via display.newImage and physic library

Also, there are a few third-party particle managers that exist for Corona SDK that may have more features than the one you are evaluating. 

Like dusk
http://www.gymbyl.com/programming/dusk.html

I think Scott meant CBE, as Dusk is more of a tile-management engine, rather than a particle engine.

http://www.gymbyl.com/programming/cbe.html

That is right, he has written so may libraries I lost track.

I think Scott meant CBE, as Dusk is more of a tile-management engine, rather than a particle engine.

 

http://www.gymbyl.com/programming/cbe.html

Yeah CBE looks really cool! It looks rather overkill for what I’m trying to do (just some confetti animation) but I will keep it in mind for future projects.

Thanks guys :smiley:

docs.coronalabs.com/api/type/EmitterObject/index.html#emitter-pointlinefield

@scottrules44

Yes, I am aware of this.

Can you be so kind as to point out exactly which variable controls the initial Y velocity of the particles?

Thanks.

Their is not a initial y velocity. Particles are not physics bodys.

What are you trying to achieve.

@scottrules44

Their is not a initial y velocity. Particles are not physics bodys. 

Ok, thanks for answering. I must say, however, that I am disappointed in Corona for not allowing the developer the modify the initial Y velocity…

I am trying to emulate confetti falling in a victory scene. Although I can still use “gravityy”, I much rather have a constant negative Y velocity and have gravityy = 0, but I guess setting gravityy is has a close enough effect…

You can away just make your own particles. Via display.newImage and physic library

Also, there are a few third-party particle managers that exist for Corona SDK that may have more features than the one you are evaluating. 

Like dusk
http://www.gymbyl.com/programming/dusk.html