Is it possible to do animation on the window_base class? I want my window to shine covering its contents for a few seconds.
Is it also possible to show a battle animation inside the menu?
Here is my code:
Is it also possible to show a battle animation inside the menu?
Here is my code:
JavaScript:
Input.keyMapper["71"] = "openTest";
_alias_scene_map_updatetest = Scene_Map.prototype.update;
Scene_Map.prototype.update = function()
{
_alias_scene_map_updatetest.call(this);
if(Input.isTriggered("openTest")) SceneManager.push(SceneTest);
}
class WindowTest extends Window_Base
{
constructor(rect)
{
super(rect);
}
}
class SceneTest extends Scene_MenuBase
{
create()
{
super.create();
var rect = new Rectangle(0, 0, 500, 300);
this._customWindow = new WindowTest(rect);
this._customWindow.drawText("First Box", 0, 0);
this.addWindow(this._customWindow);
}
exitSlotCommandTest()
{
console.log('exit');
}
}
SceneTest.prototype.update = function()
{
Scene_MenuBase.prototype.update.call(this);
if(Input.isTriggered("cancel")) SceneManager.pop();
}