HI, I have a problem - I need to script two functions to one button, but I dont know how to do that. For example I have a “start new game” button, that should remove main menu widget and load selected level simultaneously, any idea ? What command do I have to use ?
Thanks a lot, I tried both methods, but none of them works - I need to force my main menu widget to dissapear from screen and force engine to load new map simultaneously after I click a “new game button”.
Ah I see. So first of all you have to realize that nothing you ever code in a computer will happen simultaneously. At least not if it’s working together.
But more importantly in this case the engine will start to load the level which stops everything happening in the old map. So you will have to put this node always at the end of everything you want to do.