Thanks for reporting! Could you share some more info on how you set it up? I could not reproduce this when I tested with 4 spawned instances.
test.collection [used as main collection]
- go [gameobject]
- factory [points to spawn.go]
- script [test.script]
spawn.go
- script [spawn.script]
- sprite
test.script
function init(self)
for i=1,4 do
local x = math.random() * 600
local y = math.random() * 400
factory.create("#factory", vmath.vector3(x, y, 0.0), vmath.quat(), {}, vmath.vector3(0.1, 0.1, 0.1))
end
end
local function on_ani_done()
print("Done")
end
function init(self)
go.animate('#sprite', 'tint', go.PLAYBACK_ONCE_PINGPONG, vmath.vector4(0, 0, 1, 1), go.EASING_LINEAR, 4, 0, on_ani_done)
end
function update(self, dt)
print(go.get('#sprite', 'tint'), msg.url('#sprite'))
end
DEBUG:SCRIPT: vmath.vector4(1, 1, 1, 1) url: [default:/instance0#sprite]
DEBUG:SCRIPT: vmath.vector4(1, 1, 1, 1) url: [default:/instance1#sprite]
DEBUG:SCRIPT: vmath.vector4(1, 1, 1, 1) url: [default:/instance2#sprite]
DEBUG:SCRIPT: vmath.vector4(1, 1, 1, 1) url: [default:/instance3#sprite]
DEBUG:SCRIPT: vmath.vector4(0.99166667461395, 0.99166667461395, 1, 1) url: [default:/instance0#sprite]
DEBUG:SCRIPT: vmath.vector4(0.99166667461395, 0.99166667461395, 1, 1) url: [default:/instance1#sprite]
DEBUG:SCRIPT: vmath.vector4(0.99166667461395, 0.99166667461395, 1, 1) url: [default:/instance2#sprite]
DEBUG:SCRIPT: vmath.vector4(0.99166667461395, 0.99166667461395, 1, 1) url: [default:/instance3#sprite]
DEBUG:SCRIPT: vmath.vector4(0.98333334922791, 0.98333334922791, 1, 1) url: [default:/instance0#sprite]
DEBUG:SCRIPT: vmath.vector4(0.98333334922791, 0.98333334922791, 1, 1) url: [default:/instance1#sprite]
DEBUG:SCRIPT: vmath.vector4(0.98333334922791, 0.98333334922791, 1, 1) url: [default:/instance2#sprite]
DEBUG:SCRIPT: vmath.vector4(0.98333334922791, 0.98333334922791, 1, 1) url: [default:/instance3#sprite]
DEBUG:SCRIPT: vmath.vector4(0.97500002384186, 0.97500002384186, 1, 1) url: [default:/instance0#sprite]
DEBUG:SCRIPT: vmath.vector4(0.97500002384186, 0.97500002384186, 1, 1) url: [default:/instance1#sprite]
DEBUG:SCRIPT: vmath.vector4(0.97500002384186, 0.97500002384186, 1, 1) url: [default:/instance2#sprite]
DEBUG:SCRIPT: vmath.vector4(0.97500002384186, 0.97500002384186, 1, 1) url: [default:/instance3#sprite]