Post message after some time

I have a message call back when animation ‘A’ completes. So that - animation ‘B’ can be started. However i want to give small delay say 3 seconds.

    if  message_id == hash("done_animation_cow") then 
	     if gameState == 0 then
		    showLightSequence()	-- This has another set of animation which I want to call after some time.		
		    -- timer.delay(2.0, false, showLightSequence) //not working
         end
     end

Looks like very basic stuff - any help, much appreciated.

timer.delay() should work fine for you, try to debug with prints when what’s happening and see where the error is.

With go.animate() you can set the delay property.