Skip to content
Snippets Groups Projects
Commit 1bd8b40e authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2074 51575b47-30f0-44d4-a5cc-537603b46e54
parent 56443bb3
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,11 @@ return {
foreground = function(level, x, y, nb_keyframes)
local Map = require "engine.Map"
for i = 1, nb_keyframes do level.foreground_particle:update() end
level.foreground_particle.ps:toScreen(x, y, true, 1, nb_keyframes)
for i = 1, nb_keyframes do
level.foreground_particle:update()
if i == 1 then level.foreground_particle.ps:toScreen(x, y, true, 1) end
level.foreground_particle.ps:update()
end
end,
}
......@@ -67,8 +67,11 @@ return {
background = function(level, x, y, nb_keyframes)
local Map = require "engine.Map"
for i = 1, nb_keyframes do level.background_particle:update() end
level.background_particle.ps:toScreen(x, y, true, 1, nb_keyframes)
for i = 1, nb_keyframes do
level.background_particle:update()
if i == 1 then level.background_particle.ps:toScreen(x, y, true, 1) end
level.background_particle.ps:update()
end
end,
]]
}
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