TheoAllen

Scene TestMove

Aug 17th, 2013
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.38 KB | None | 0 0
  1. class Scene_TestMove < Scene_Base
  2.  
  3.   def start
  4.     @window = Window_Base.new(100,100,100,100)
  5.   end
  6.  
  7.   def update
  8.     super
  9.     unless @window.moving?
  10.       @window.left(100,10) if Input.trigger?(:LEFT)
  11.       @window.right(100,10) if Input.trigger?(:RIGHT)
  12.       @window.goto(rand(Graphics.width),rand(Graphics.height),10) if Input.trigger?(:SHIFT)
  13.     end
  14.   end
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment