You could do this easily with the timer behaviour..
Just create a sprite called "timer", which we'll use for for project-wide timing and give it the timer behaviour..
on start of layout we'll set the timer for 2 seconds..
Replace the time = 2 seconds with an on timer event..
you can restart the timer either in the event itself or in the event that destroys the rock and blockade..