New Scene Title Screen

The script is in error

RPG_Scenes.js

function Scene_Creditos() { this.initialize.apply(this, arguments);}Scene_Creditos.prototype = Object.create(Scene_MenuBase.prototype);Scene_Creditos.prototype.constructor = Scene_Creditos;Scene_Creditos.prototype.initialize = function() { //align center?    var janela = window.new(0,0,100,100);    janela.prototype.initialize.call(this, 0, 0, 0, 0);    janela.draw_text(0,0,0,0,"Testando 1,2,3...");};I would like the window was closed by pressing the esc key
um... can you show the error? and the full script?

and what do you want it to be?
rpg_window.js

Window_TitleCommand.prototype.makeCommandList = function() { var parameters = PluginManager.parameters('TitleShutdownCommand'); var credito = parameters['Name'] || "Creditos"; this.addCommand(TextManager.newGame, 'newGame'); this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled()); this.addCommand(TextManager.options, 'options'); this.addCommand(credito, 'Creditos');};[IMG]http://rodrigocordula.com.br/whiteList/steamgifts/script01.PNG[/IMG]

Créditos = Credits

RPG_Scenes.js

function Scene_Creditos() {this.initialize.apply(this, arguments);}Scene_Creditos.prototype = Object.create(Scene_MenuBase.prototype);Scene_Creditos.prototype.constructor = Scene_Creditos;Scene_Creditos.prototype.initialize = function() {//align center?    var janela = window.new(0,0,100,100);    janela.prototype.initialize.call(this, 0, 0, 0, 0);    janela.draw_text(0,0,0,0,"Testando 1,2,3...");};[IMG]http://rodrigocordula.com.br/whiteList/steamgifts/script02.PNG[/IMG]
the console is more helpful.

btw, have you add a command in here?

Code:
Scene_Title.prototype.createCommandWindow
unfortunately the explanation is very superficial.
show the error on console. click F8
 



same mistake, the same code



Would like you give an example of window?

Original thread: https://forums.rpgmakerweb.com/threads/new-scene-title-screen.52745/