So, I just had a random thought for my game.
I was wondering if it were possible to have a two copies of the Luna Engine menu scripts in one game, but each had the menu appear designed differently and then have a switch or something that could tell the game which version to use?
Like for example:
If the player went between two different worlds, the past and the future, have the menu look older and rustic for the past, and have it look futuristic for the future.
no need for that you can implement a "theme" by using variable
theme = $game_switch.idbitmap = Cache.menu("layout" + theme.to_s)that's purelly a exemple but after the game will recognize the design
(that one code will not work I just showed a exemple)
Thanks, but how would I go about writing or implementing the example in a way that would work?
Forgive the lack of formatting, I'm on my phone.
theme = $game_variables[your variable]
if theme == 1
Do theme 1 stuff
elsif theme == 2
Do theme 2 stuff
elsif theme ==3
Do theme 3 stuff
else
Do a theme for when it's not 1, 2, or 3.
end
Something like that should do.
actually they have a method who make a lot more short
theme = $game_variables[your variable]["$bitmap[System, layout "+"#theme.to_s]", [X, Y], Opacity, Src_rect]that will shorten the method and the time conssumming but I am not sure for how implement the #theme.to_s (not remember what wqas the way for impliement variable id into a string
but you can use zall method
Thanks guys!
Unfortunately I can't try it out right now as I have company now.
I do have another question about it though.
In each individual scene then, using the front of the menu as an example:
Instead of:
[LUNA MENU CODE]
change it to
if [sCENE = 1]
[MENU SCRIPT]
else
[DUPLICATE MENU SCRIPT (only with the different pictures?)]
end
Will that work?
Sorry for the noobish question. I've becoming familar with the Luna Engine but beyond that I'm clueless still when it comes to coding in Ruby. 🙂
I appreciate the help.
Thanks! It took me a bit to figure still but I finally got it working using Archeia's solution.
So thank you!