Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STANDING_EXTRA = "_stehend"
- WALKING_EXTRA = "_laufend"
- SHOT_EXTRA = "_schuss"
- WALKING_SHOT_EXTRA = "_laufschuss"
- SHOT_WAITTIME = 80
- class Game_Player
- alias initialize_char_pose initialize unless $@
- def initialize
- @set_information = ["",0]
- initialize_char_pose
- end
- def update_character_pose
- @set_information[0] = $game_party.members[0].character_name
- if @set_information[1] > 0
- @set_information[1] -= 1
- elsif Input.trigger?(Input::A) && Input.trigger?(Input::X) || Input.press?(Input::A) && Input.trigger?(Input::X)
- @character_name = @set_information[0]+WALKING_SHOT_EXTRA
- @set_information[1] = SHOT_WAITTIME
- elsif Input.press?(Input::A)
- @character_name = @set_information[0]+WALKING_EXTRA
- elsif Input.trigger?(Input::X)
- @character_name = @set_information[0]+SHOT_EXTRA
- @set_information[1] = SHOT_WAITTIME
- elsif Input.dir4 == 0
- @character_name = @set_information[0]+STANDING_EXTRA
- else
- @character_name = @set_information[0]
- end
- end
- alias update_char_pose update
- def update
- update_character_pose
- update_char_pose
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement