Dynamic VetGroup name?

Something to this effect:

[lua]

local burn=CBE.VentGroup{

  { … }

}

local function makeABurn()

  burn:emit(“burn”)

end

[/lua]

  • C

didn’t workout. if new fireball created, the other older fireball appears on same position as the new one, as if i run without “burn:emit(“burn”)”

                    local function makeABurn()                         burn:emit("burn")                         dropSomething[index].fireBall = burn:get("burn")                         dropSomething[index].fireBStart = burn:start("burn")                         dropSomething[index].fireBall.x, dropSomething[index].fireBall.y = brick.x, brick.y                             end                                          makeABurn()  

Ok, so I think what you’re trying to do is create a fireball at a certain location. Is that correct?

If so, you should do something like this:

[lua]

local burn=CBE.VentGroup{

  {

    preset=“burn”,

    title=“burn”,

    emissionNum=15 – So it doesn’t go forever

  }

}

local function makeABurn()

  burn:translate(“burn”, fireballX, fireballY) – Wherever you want it

  burn:start(“burn”)

end

[/lua]

  • C