[Beginner] Need Help! (Change Images on Sprites)

Hello! I need help, when I touch a certain sprite, the image will be changed. But once the image is changed, after a second, I want the image to change again but to its original image.

do not make multiple post for the same topic. By the way did you try the way suggested in the original post?

This is not the same topic. Although there may be some similarities, in the previous post I put it where a new image popped up. But for this new post, I want the sprite to change image.

Already some blocks or ways suggested earlier to you.

If this is the case then you may try using the clock component.

Initially set the image 2 visibility to false to achieve below code

When Sprite clicked
Show image 1 to false
Show image 2 to true
Set clock timer to true along with timer value

When clock timers
Set clock timer to false (very imp)
Show image 1 to true
Show image 2 to false

If you have tried any of the way suggested in the post and got succeeded then you would not have asked this and you will be improved in logical sequence

Try a table of pending sprite image changes, serviced by a clock.

Normally empty, the table would be given a new row for a pending sprite image change with

  • SystemTime when it should happen (future)
  • Sprite component
  • Pending image

Each clock timer cycle, the clock checks the table for entries that are ripe, applies them, then removes them.

Do removes from high index to 1 by -1 to avoid index collapse.

This is good for lots of sprites.

I built you the blocks you would need and the settings for The clock it's pretty simple:
Clock and components required
Blocks
Set the "your image" and "your Image 2" To the images you want for the background.
_Junko