Please help. bug

I have that when i press g if its 0 the scene variables changes to 1 and reverse but when i press g nothing happens its supposed to change animation of one of my charecter change the cursor and much more but nothing happens. i tried to se if just the animation didnt change but its like if the variable doesent change at all

Can you provide a screen snip of the events around the ones when you check for G being pressed?

Oh sorry here

Here’s the problem:

When G is pressed, you change the variable gun to 1. But in the event immediately after it, you change it back to 0.

A way around this is to replace the 2 events with this one:

The mathematics function mod will return the remainder when the value gun + 1 is divided by 2.

Oh thank you so much.