Compilation error

Hi to all!

I am having some compilation errors in this code.

I have a collision that when it ocurrs, a cross just appears blinking for 2 seconds, and then it should disappear, but it gives me some coding errors.

The “cross” object starts as “not visible”.

What could be the the problem?

[lua]local function stopCross()
    display.remove(cross)
    cross = nil
end

local function twinkleCross()
    cross.isVisible = true
    transition.blink( stopCross, {time = 2000} )
end[/lua]

Thanks!!

Regards.

Hi! Please forget this question I already solved!

Thanks!

Hi! Please forget this question I already solved!

Thanks!