Hello everyone, I'm just now starting into Java Script and I was wanting to make A pop up plugin, where I can call A pop up with some text, the call I would like to have something like Popup("say this",s) s would be the seconds it shows. I know some other programming languages i just don't know where to start with java script and rmmv.
I've tried looking though the the core code for the pieces that I need like the window base, I'm not quite sure how to put it together. I have been watching a Video and this is what I have
Window_Sample.prototype.windowHeight = function(){ return this.fittingheight(1);0 }; Window_Sample.prototype.refresh = function(){ var x = this.textPadding(); var width = this.contents.width - this.textPadding() * 2; this.contents.clear(); this.drawIcon(2,0,0); }; Window_sample.prototype.open = function() { this.refresh(); Window_Base.prototype.open.call(this); }; function Sample_scene(){ this.initialize.apply(this, arguments); }; Sample_scene.prototype = object.create(scene_MenuBase.prototype); Sample_Scene.prototype.constructor = Sample_Scene; Sample_Scene.prototype.initialize = function(){ Scene_MenuBase.prototype.create.call(this); }; Sample_Scene.prototype.create = function(){ Scene_MenuBase.prototype.create.call(this) this._sampleWindow = new Window_Sample this.sampleWindow.x = Graphics.width / 2 - 100; this.sampleWindow.y = Graphics.height / 2 - 100; this.addWindow(this._sampleWindow); }; Sample_Scene.prototype.start = function(){ Scene_MenuBase.prototype.start.call(this); };I have just been trying to make a basic window display on the screen, I've made A title skip plugin but that sort of helped my understanding of finding the pieces of code in the core rmmv code.