How to toggle layers back and forth?

When you run this code and the “OC” layer is visible at the beginning of the game, and click on the down arrow “gttc”, the code works, but when you click on the up arrow"ggtt", it does not work, as if I did not click on it>

A few things could be going on, but first:

  1. You always want a “trigger once” condition in your event whenever taking a non-repeating action, especially when dealing with animations or hiding/showing something.
  2. Try disabling the event that does work, does the other event work then? If so, something about ggtt and gttc are overlapping/causing conflict with one another.
1 Like