Image Blink with a button

Hello, any idea on how to make an image to blink after a button press?

I have two images that change with a button press, its a Open/Close button, I need that when it is first pressed (open)the new image blinks, then with the second press it goes back to the first image(closed) with no blinking.

these are my blocks

image

Add a canvas, variable and timer to your project. You can set a timer. When it fires if the variable is true then set the canvas picture to none and then set the picture back (the image that you want to blink)
When the button click set the variable to it’s next value. (If it is (the variable) true, set the variable to false, else set the variable to true)

1 Like