Advertisement
LiTTleDRAgo

[RGSS/2/3] Rotate Character

Jan 29th, 2012
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.72 KB | None | 0 0
  1. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  2. # [Xp/Vx/Vx-A] DRG - Rotate Character
  3. # Version: 1.02
  4. # Author : LiTTleDRAgo
  5. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
  6. #
  7. # How to use
  8. #
  9. # Type in the script call
  10. #
  11. #     $game_map.events[1].angle = 90
  12. #
  13. # To revert back to normal
  14. #
  15. #     $game_map.events[1].angle = 0
  16. #
  17. #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
  18.  
  19. class Sprite_Character
  20.   alias rotate_update update
  21.   def update
  22.     rotate_update
  23.     self.angle = @character.angle if @character.angle != nil
  24.   end
  25. end
  26.  
  27. eval("class Game_Character; attr_accessor :angle; end")
  28. $drago_rotate_character = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement