TheoAllen

Iseng2 RGSS3 (6) Animated

May 29th, 2013
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.33 KB | None | 0 0
  1. DataManager.init
  2.  
  3. def updates
  4.   Graphics.update
  5.   Input.update
  6.   $sprite.src_rect.x += 1*32 if Graphics.frame_count % 5 == 0
  7.   $sprite.src_rect.x = 0 if $sprite.src_rect.x >= $sprite.bitmap.width
  8. end
  9.  
  10. $sprite = Sprite.new
  11. $sprite.bitmap = Cache.character("actor1")
  12. $sprite.src_rect = Rect.new(0,0,32,32)
  13. updates while true
Advertisement
Add Comment
Please, Sign In to add comment