Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test < Scene_Base
- def main
- super ()
- end
- def start
- @gambar = Sprite.new
- @gambar.bitmap = Bitmap.new("graphics/pictures/actor5.png")
- @gambar.x | @gambar.y = 0
- end
- def movement
- if Input.press?(Input::DOWN)
- @gambar.y += 1
- end
- if Input.press?(Input::LEFT)
- @gambar.x -= 1
- end
- if Input.press?(Input::RIGHT)
- @gambar.x += 1
- end
- if Input.press?(Input::UP)
- @gambar.y -= 1
- end
- if Input.trigger?(Input::B)
- SceneManager.scene != self
- end
- end
- def terminate
- super()
- end
- end
Add Comment
Please, Sign In to add comment