IceDragon200

Fix

Oct 14th, 2011
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.60 KB | None | 0 0
  1. # // Dont cram your code together
  2. class Window_Mine < Window_Base
  3.  
  4.   def initialize
  5.     super( 0, 0, 320, 240 )
  6.     actor = $game_actors[1]
  7.     x, y = 5, 50
  8.     draw_actor_face( actor, x, y )
  9.   end
  10.  
  11.   # // Define your methods, outside other methods . x .
  12.   def your_method
  13.   end
  14.  
  15. end
  16.  
  17. class Scene_Mine < Scene_Base
  18.  
  19.   def start()
  20.     super()
  21.     @my_window = Window_Mine.new
  22.   end
  23.  
  24.   def update()
  25.     super()
  26.     @my_window.update
  27.     if Input.trigger?(Input::C)
  28.       $scene = Scene_Map.new
  29.     end
  30.   end
  31.  
  32.   def terminate()
  33.     super()
  34.     @my_window.dispose
  35.   end
  36.  
  37. end
Advertisement
Add Comment
Please, Sign In to add comment