Basically, what I am trying to do is this:
-If f8 is pressed, two windows are shown. If it is pressed again they disappear.
-If f9 is pressed, same but different windows.
Here's what I have:
/\ In a seperate thing called def winds.
/\ In def update_graphics
/\ In def update
/\ In def main_draw
This is all in Scene_Map...
I know I have done this wrong, as it is not working. (Undefined method "update", for these lines:
@herowin.update
@petwin.update
@window1.update
@window2.update
How should I have done this?
-If f8 is pressed, two windows are shown. If it is pressed again they disappear.
-If f9 is pressed, same but different windows.
Here's what I have:
Code:
def update_winds
if Input.trigger?(Input::F8)
if @inputf8 == true
@inputf8 = false
else
@inputf8 = true
end
end
if Input.trigger?(Input::F9)
if @inputf9 == true
@inputf9 = false
else
@inputf9 = true
end
end
end
/\ In a seperate thing called def winds.
Code:
if @inputf8 == true
@window1.update
@window2.update
end
if @inputf9 == true
@herowin.update
@petwin.update
end
/\ In def update_graphics
Code:
update_winds
/\ In def update
Code:
if @inputf8 == true
@window1 = Window_Quests.new
@window2 = Window_QuestRewards.new
end
if @inputf9 == true
@herowin = Window_HeroStats.new
@petwin = Window_PetStats.new
end
/\ In def main_draw
This is all in Scene_Map...
I know I have done this wrong, as it is not working. (Undefined method "update", for these lines:
@herowin.update
@petwin.update
@window1.update
@window2.update
How should I have done this?