I want to preference this with the warning that I feel insanity from trying this.
I want to use Window.new([x, y, width, height]) to make a blank window, and avoid the title scene. What classes do I need to declare?
I hope this won't break rules. But it doesn't feel intuitive atm.
using draw_text_ex how do I align the text? I can't find any list of short codes for draw_text_ex
This is my code so far:
it draws everything. but I would like to know of any hidden short codes or methods for aligning the text for the page[0] entry. It was suggested that I try breaking the text apart.
I wanted to take advantage of the eval function in Ace and make it so I can "program" books in a text document, and have them added to the game with some clever methods.
Any help is appreciated
I want to use Window.new([x, y, width, height]) to make a blank window, and avoid the title scene. What classes do I need to declare?
I hope this won't break rules. But it doesn't feel intuitive atm.
using draw_text_ex how do I align the text? I can't find any list of short codes for draw_text_ex
This is my code so far:
Code:
class Scene_Book < Scene_Base
def start
super
@book_title = Window_Base.new(0,0,Graphics.width, Graphics.height)
@page = []
@page[0] =
"Sun Champion- Kalvgv: The Woes of Birth \n Leon Sandcastle"
@page[1] =
"Dedicated to my great uncle, brother to
my grandfather, and teacher to his nephews.
One of the three Legendary Ginseng hunters of
his generations."
@ind = 0;
refresh
end
def refresh
@book_title.contents.clear
#@book_title.contents.font.name = "Courier New"
# @book_title.contents.font.size = 24
# @book_title.contents.font.color = Color.new(255,255,255)
case @ind
when 0
@book_title.draw_text(0,0,Graphics.width,48,@page[@ind],1)
else
@book_title.draw_text_ex(0,0,@page[@ind])
end
end
def update
super
if Input.trigger?(:LEFT)
if @ind > 0
@ind -= 1;
refresh
end
elsif Input.trigger?(:RIGHT)
if @ind < @page.size
@ind += 1;
refresh
end
end
end
end
it draws everything. but I would like to know of any hidden short codes or methods for aligning the text for the page[0] entry. It was suggested that I try breaking the text apart.
I wanted to take advantage of the eval function in Ace and make it so I can "program" books in a text document, and have them added to the game with some clever methods.
Any help is appreciated