• General Chat
  • how should i disable previous scene which is still running at background ?!!

hi godot users :) when i use the main menu for loading the game, after changing the scene, i still can click the main menu buttons with my mouse!! i use texture rect for main menu, how can i fix this problem, thanks

Are you doing the menu in its own scene or is it a sort of UI mode in a larger scene?

If the former, then the change_scene function should get rid of everything related to where you are coming from (with the exception of an auto-loaded global script).

hi @"Ace Dragon" they're two separated scenes, but what you said about changing the scene was great. i was loading the scene on main menu scene, i changed it to get_tree().change_scene() and changed some other things and it fixed my problem. thank you for your guidance :)