Lorem Ipsum
Member
In RGSS, I know you can use 'print' to have a popup. But which module would you use to print text on the screen as would happen with the "Show Text" event?
class Window_First < Window_Base
class Window_First < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 256, 96)
end
end
class Window_First < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 256, 96)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.draw_text(0, 0, 256, 32, "Hello, World")
end
end
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
def refresh
self.contents.clear
self.contents.draw_text(0, 0, 256, 32, "Hello, World")
self.contents.draw_text(x-position, y-position, width, height, "the text you want to write", align)
$window = Window_First.new
$window.dispose
window = Window_First.new
super(0, 0, 256, 96)
text = "Hello World!"
text_layer = Sprite.new
text_layer.bitmap = Bitmap.new(200, 200) # width, height
text_layer.bitmap.draw_text(text_layer.x, text_layer.y, text_layer.bitmap.text_size(text).width, text_layer.bitmap.text_size(text).height, text)
text_layer.bitmap.draw_text(text_layer.x, text_layer.y, text_layer.bitmap.text_size(text).width, text_layer.bitmap.text_size(text).height, text)
text_layer.bitmap.draw_text(0, 0, text_layer.bitmap.text_size(text).width, text_layer.bitmap.text_size(text).height, text)