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

#1

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

#2

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

3 Likes

#3

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

1 Like