Hello! I'm having a problem with my game, I was trying to do something like a switch structure so that when a global variable takes a specific value, a certain image becomes visible, like this
but when executing I sometimes see the right image according to the global value popping up and sometimes I don't. Does anybody has an idea what could be going on?