Hi everyone!
I’m having a problem with my pause function
[code]function GameHelper:pauseGame(npcs)
cameraLocked = true
update = false
if npcs then
for i = 1, npcs.numChildren do
npcs[i]:pause( )
if npcs[i].transition then
transition.cancel ( npcs[i].transition )
end
end
end
end
[/code]
It works, but not always. I often end up having one or a couple of npcs not pausing their animation or canceling their transition, this goes for when I only have one in total as well, sometimes it works great others it just don’t.
Anyone got an idea of what might be causing this behavior? [import]uid: 129450 topic_id: 28560 reply_id: 328560[/import]

