Skip to content
Snippets Groups Projects
Commit 60fde79f authored by DarkGod's avatar DarkGod
Browse files

fix

parent 5edaa731
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,9 @@ base_size = 32
local nb = 0
x = x or 0
y = y or 0
life = life or nil
local first = true
return {
blend_mode=additive and core.particles.BLEND_SHINY or nil,
......@@ -31,7 +34,7 @@ return {
return {
trail = 0,
life = 100,
life = life or 100,
size = fs, sizev = 0, sizea = 0,
x = x * base_size, xv = 0, xa = 0,
......@@ -46,6 +49,7 @@ return {
}
end, },
function(self)
self.ps:emit(1)
if first or not life then self.ps:emit(1) end
first = false
end,
1, "particles_images/"..(img or "square"), true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment