So currently Im using Yanfly's ButtonCommonEvent and KeyboardConfig and it's currently working.
My task is simple: Open and close the Inventory screen With the "I"key.
My Current Script is:
SceneManager.push(Scene_Item);
So Im able to open the Inventory screen but not close it. Does anyone know how to add a "if statement" so it closes when the screen is already open?
Thanks for taking the time to read this 😀
My task is simple: Open and close the Inventory screen With the "I"key.
My Current Script is:
SceneManager.push(Scene_Item);
So Im able to open the Inventory screen but not close it. Does anyone know how to add a "if statement" so it closes when the screen is already open?
Thanks for taking the time to read this 😀