When I press "closemenu" i want everything to not be visible. But when i click "closemenu" it will only delete if I move my mouse over another sprite how do i fix this

I do have a code where when i move my mouse over a sprite it will make another sprite appear I need help

Hello!
This is an interesting question, but we’re going to need a little more information to be able to help.

  • Share the link to your project using the Share button:
  • Describe what is supposed to happen:
  • Describe what happens instead:
  • Describe what you've already tried in order to solve the problem: