Showing an image then hiding it after 3 seconds

Hi there,
I am working on a project with a scrambler. When the puzzle is solved, an image (loos_pic1) appears. I am trying to work out how to hide the image again once the scrambler has reset. (Loos mean "correct").

puzzle1.on("complete", ()=>{
loos_pic1.vis(true);
puzzle1.scramble(1,2,3);//take 1 sec to scramble it 3 times but wait 2 seconds
})

Thank you.

In there add:

timeout(3, ()=>{loos_pic.vis(false);});

I think that will do what you want...

That's exactly what I wanted!!!! So helpful. Thank you very much.

Rod

1 Like