Particle play onComplete?

A) Is there an onComplete method for when a particle ventGroup has finished firing? Blindly looking at the code isn’t bringing anything up.

B) Is there any documentation (not the tutorials, but legit command documentation that is remotely like the Corona docs, even if it’s TXT form)?  It’s just super frustrating not to know what all of the settings are for any given part of CBEffects.

A ) Yes: vent.onEmitEnd()

B ) Not currently. I do have an outdated version (though still mostly comprehensive) of the parameter reference if you wish: https://gist.github.com/GymbylCoding/8676184

  • C

I don’t understand? (And this is why a parameter reference is needed) - you just specified a function call, but I’m assuming it has to be added as a parameter of the vent group?

ie: this does not work pre 3.0:

<lua>

effectDetails = {

        preset=“sparks”,

        title=“explode”, – Make sure you title your vents!

        emissionNum = ( math.round( 10 * findMultiplier(1, “emissionNum”) ) ),

        positionType = “atPoint”,

        x = display.contentCenterX,

        y = 75,

        perEmit = 4,

        emitDelay = 100,

        onEmitEnd=function() audio.setVolume(1) end,

}

local particleSet = CBEffects.VentGroup({ effectDetails })[/lua]

I’ve omitted some code there, but onEmitEnd is definitely not happening.

Generally, when writing documentation, explanations, or other “human” versions of programming code, a function name is specified with the parentheses added so you know it’s a function (as in “the function myVariable()” versus “the variable myVariable”).

vent.onEmitEnd() was added in version 3.0, so prior versions will not work with it.

I’m also extremely bogged down with multiple projects I’m working on at the moment (a personal game with a deadline at the same time of upkeep of CBEffects and Dusk, etc.), so please try to understand that the documentation is on its way :slight_smile:

  • C

The GitHub repository now has an updated parameter guide; check it out :slight_smile:

  • C

A ) Yes: vent.onEmitEnd()

B ) Not currently. I do have an outdated version (though still mostly comprehensive) of the parameter reference if you wish: https://gist.github.com/GymbylCoding/8676184

  • C

I don’t understand? (And this is why a parameter reference is needed) - you just specified a function call, but I’m assuming it has to be added as a parameter of the vent group?

ie: this does not work pre 3.0:

<lua>

effectDetails = {

        preset=“sparks”,

        title=“explode”, – Make sure you title your vents!

        emissionNum = ( math.round( 10 * findMultiplier(1, “emissionNum”) ) ),

        positionType = “atPoint”,

        x = display.contentCenterX,

        y = 75,

        perEmit = 4,

        emitDelay = 100,

        onEmitEnd=function() audio.setVolume(1) end,

}

local particleSet = CBEffects.VentGroup({ effectDetails })[/lua]

I’ve omitted some code there, but onEmitEnd is definitely not happening.

Generally, when writing documentation, explanations, or other “human” versions of programming code, a function name is specified with the parentheses added so you know it’s a function (as in “the function myVariable()” versus “the variable myVariable”).

vent.onEmitEnd() was added in version 3.0, so prior versions will not work with it.

I’m also extremely bogged down with multiple projects I’m working on at the moment (a personal game with a deadline at the same time of upkeep of CBEffects and Dusk, etc.), so please try to understand that the documentation is on its way :slight_smile:

  • C

The GitHub repository now has an updated parameter guide; check it out :slight_smile:

  • C