So I was using the good ol' draw_text function in VX Ace and am trying to use it again in MV, but I can't seem to find any examples of using it outside of a menu.
Literally, just want to draw the words "Draw Text" at 1,230 and it works perfectly in VX Ace.
Code from VX Ace:
Sadly I'm at a loss as to how to do this in Javascript aside from what I've tried since I can't find the script editor like before.
and calling it with
myPlugin.testDraw();
Now I'm pretty sure I'm missing the rectangle that contains the bitmap for drawing the text so if anyone can help, it would be appreciated!
Literally, just want to draw the words "Draw Text" at 1,230 and it works perfectly in VX Ace.
Code from VX Ace:
Ruby:
@sprite = Sprite.new
@sprite.bitmap = Bitmap.new(200, 16)
rect = Rect.new(0, 0, 200, 16)
text = "Draw Text"
@sprite.x = 1
@sprite.y = 230
@sprite.bitmap.draw_text(rect, text)
Sadly I'm at a loss as to how to do this in Javascript aside from what I've tried since I can't find the script editor like before.
JavaScript:
Game_Interpreter.prototype.testDraw = function(){
var text = "Draw Text";
var sprite = this.Sprite();
this.drawText(text,172,5);
this.update();
};
and calling it with
myPlugin.testDraw();
Now I'm pretty sure I'm missing the rectangle that contains the bitmap for drawing the text so if anyone can help, it would be appreciated!