Mouse released on sprite function

Lets say I have 3 different book sprites with 3 different functions, that will make appear an image for each sprite that you click. My problem is, if i click a random sprite then click another sprite they’ll both appear an image and overlaps with it. I’m thinking if i add a timer for each click so that you can’t click the other book if the timer is still on going and there’s still an image showing

sprites if the timer is still on going?

If you are creating the image, try checking if instance of bookimg < 1
If the image is already there and you are showing, then check if image is hidden

1 Like

Add some event when click pressed hide all images so when click released only will show the image of the selected book