[Resolved]Trying to pause and resume transitions with Satheesh's simple pausable transition module

I have named Satheesh’s module stp.lua and required it in my main.

I am moving a display group

[lua]function moveGroup(params)
moveOrderTime = params.time
moveOrderX = params.x
moveOrderY = params.y
output = transition.to(displayGroup,{time = moveOrderTime, x = moveOrderX, y = moveOrderY, onComplete = resetGroup})

return output
end[/lua]

then trying to pause it when it collides with something, and resume when the collision has ended

[lua]function onLocalCollision(event)
if (event.phase==“began”) then
transition.pause(displayGroup)
end
if (event.phase==“ended”) then
transition.resume(displayGroup)
end
end[/lua]

but it complains that pause is a nil value.

Any idea why?

EDIT: solved it, the module hadn’t saved -_- [import]uid: 106739 topic_id: 19057 reply_id: 319057[/import]

Haha, well done for figuring it out - I’ve done that too many times to count :wink:

Peach [import]uid: 52491 topic_id: 19057 reply_id: 73520[/import]