Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: Rails  |  size: 0.41 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class Window_Mine < Window_Base
  2.   def initialize
  3.     super (0,0,320,240)
  4.     actor = $game_actors[1]
  5.     x,y = 5, 50
  6.     draw_actor_face(actor, x, y)
  7.   end
  8. end
  9.  
  10. class Scene_Mine < Scene_Base
  11.   def start
  12.     @my_window = Window_Mine.new
  13.   end
  14.   def update
  15.     @my_window.update
  16.     if Input.trigger?(Input::C)
  17.       $scene = Scene_Map.new
  18.     end
  19.   end
  20.   def terminate
  21.     @my_window.dispose
  22.   end
  23. end