TheoAllen

Iseng2 RGSS3 (9) anim sprite

Nov 8th, 2013
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.36 KB | None | 0 0
  1. def updates
  2.   Graphics.update
  3.   Input.update
  4.   $sprite.src_rect.x = Pattern[$index % 4] * 32
  5.   $count += 1
  6.   $index += 1 if $count % 8 == 0
  7. end
  8.  
  9. Pattern = [0,1,2,1]
  10.  
  11. $count = 0
  12. $index = 0
  13. $sprite = Sprite.new
  14. $sprite.bitmap = Cache.character("$Actor-MythrillBender_1")
  15. $sprite.x = 100
  16. $sprite.y = 100
  17. $sprite.src_rect.set(0,0,32,32)
  18. updates while true
Advertisement
Add Comment
Please, Sign In to add comment