Detect if no image/flipbook found for play_flipbook (SOLVED)

Hey everyone!

Iam making a card game and for now a lot of illustrations are missing. Can I somehow detect if the image/flipbook was set correctly or it has failed?

Cards are in GUI, so I use gui.play_flipbook.

Thank you!

1 Like

You can catch the Lua error in a pcall and then handle any error.

3 Likes

Oh. Thanks, Mathias! Got it. I saw someone mentioned pcall in other topic, just thought it wasn’t my case.

1 Like