Hi,
I have 2 questions here:
1) Is it possible to call script from text file?
for example, I create script.txt in my game folder, and text in script.txt is
Is it possible to make those text in text file to script?
2) How can I make new class which class name is from string in variable?
for example,
Can I create new class called "Game_New_Class" with script?
Thanks in advance
I have 2 questions here:
1) Is it possible to call script from text file?
for example, I create script.txt in my game folder, and text in script.txt is
Code:
class My_New_Class
attr_accessor :newvar
def initialize
@newvar = 0
end
end
Is it possible to make those text in text file to script?
2) How can I make new class which class name is from string in variable?
for example,
Code:
$game_variables[1] = "Game_New_Class"
Can I create new class called "Game_New_Class" with script?
Thanks in advance