Currently this looks something like this:
Code: Select all
function setupEmitters()
--Shark wake splash effect
emittertypes.emitter_splash = {
name = "splash",
image = love.graphics.newImage("sprites/effect_splash.png"),
imagesize = 100,
frames = 5,
looping = true,
spawnrate = 0.1,
rotspeed = 5,
emitterlife = 5,
limitedlife = false,
particlelife = 5,
scale = 1,
startscale = 0.1,
endscale = 1.0,
startscalespeed = 0.1,
endscalespeed = 0,
sound = nil
}
--Next particle effect here
end
Code: Select all
createEmitter(emitter_splash, false, player1.X, player1.Y, 0, 0)
I tried doing something like:
Code: Select all
local currentemitter = emittertypes.emittype --Where emittype is emitter_splash
What do I need to add after...
Code: Select all
local currentemitter = emittertypes.