Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scene_TestMove < Scene_Base
- def start
- @window = Window_Base.new(100,100,100,100)
- end
- def update
- super
- unless @window.moving?
- @window.left(100,10) if Input.trigger?(:LEFT)
- @window.right(100,10) if Input.trigger?(:RIGHT)
- @window.goto(rand(Graphics.width),rand(Graphics.height),10) if Input.trigger?(:SHIFT)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment