Maybe that’s a strange question. I analyze the runner game. I added a simple speed shift.
Why if score is greater than 100, one platform instance does not change the speed?
I don’t understand something or is it an engine error?
For dynamic objects we have to use: msg.post(msg.url(nil, ID, “script”), “set_speed”, { speed = self.speed })
if self.score > 100 then
self.speed=6
msg.post("ground/controller#script", "set_speed", { speed = self.speed })
for i, p in ipairs(self.spawns) do
msg.post(msg.url(nil, p, "script"), "set_speed", { speed = self.speed })
end
end