Hi,
So I thought I'd do a little script editing with RMVX to get used to RGSS2 (Wow it's so much easier than RGSS...), but I've come across a problem;
As you can see above, if L (Q on Keyboard) is pressed, it's supposed to show the HUD (Seperated into two windows), so it works, except when I press Q, the HUD flashes on and off really quick, is there a way to prevent this from happening, for example, is there a way to insert a wait into the script to allow the HUD to appear ?
Also, I'd like to know, what would I have to add to make it so if I press Q again, the HUD will go away, I was thinking;
However I haven't tested it yet, I'd like to make sure I'm on the right track with this (Although I doubt it, lol)
Thanks.
So I thought I'd do a little script editing with RMVX to get used to RGSS2 (Wow it's so much easier than RGSS...), but I've come across a problem;
Code:
Â
 def showing_hud
  if Input.trigger?(Input::L)
   @hud_window1.visible = true
   @hud_window2.visible = true
  else
   @hud_window1.visible = false
   @hud_window2.visible = false
  end
 end
Â
As you can see above, if L (Q on Keyboard) is pressed, it's supposed to show the HUD (Seperated into two windows), so it works, except when I press Q, the HUD flashes on and off really quick, is there a way to prevent this from happening, for example, is there a way to insert a wait into the script to allow the HUD to appear ?
Also, I'd like to know, what would I have to add to make it so if I press Q again, the HUD will go away, I was thinking;
Code:
Â
 def showing_hud
  if Input.trigger?(Input::L)
   @hud_window1.visible = true
   @hud_window2.visible = true
  else
   if Input.trigger?(Input::L)
   if @hud_window1.visible = true
   if @hud_window2.visible = true
    @hud_window1.visible = false
    @hud_window2.visible = false
   end
  end
 end
Â
However I haven't tested it yet, I'd like to make sure I'm on the right track with this (Although I doubt it, lol)
Thanks.