Guest Access
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
Another simple experiment gone right!
This script plays an animation on the actor by
simply pressing a key/button
You can assign which animation for whatever button.
simple but effective to spice it up a bit!
will continue to play with this call animation script
This script plays an animation on the actor by
simply pressing a key/button
You can assign which animation for whatever button.
- Code:
=begin
#
# XAS Button Animations! v1.0
# by gameface101.com
# v1.0 10-6-09
# v1.1 1-3-2011
#
# "Extra animations for the character by the press of one button!"
#
=end
#===============================================================================
module B_Ani
X_DASH = Input::X
X_DASH_ANI = 111
X_DEFEND = Input::A
X_DEFEND_ANI = 64
X_ACT = Input::C
X_ACT_ANI = 0
X_CREEP = Input::B
X_CREEP_ANI = 163
X_ITEM = Input::Y
X_ITEM_ANI = 163
X_SKILL = Input::Z
X_SKILL_ANI = 163
end
#===============================================================================
class Scene_Map
alias now_play_animation update
def update
now_play_animation
actor = $game_party.actors[0]
if Input.trigger?(B_Ani::X_DASH)
$game_player.animation_id = (B_Ani::X_DASH_ANI)
elsif Input.trigger?(B_Ani::X_DEFEND)
$game_player.animation_id = (B_Ani::X_DEFEND_ANI)
elsif Input.trigger?(B_Ani::X_ACT)
$game_player.animation_id = (B_Ani::X_ACT_ANI)
elsif Input.trigger?(B_Ani::X_CREEP)
$game_player.animation_id =(B_Ani::X_CREEP_ANI)
elsif Input.trigger?(B_Ani::X_ITEM)
$game_player.animation_id = (B_Ani::X_ITEM_ANI)
elsif Input.trigger?(B_Ani::X_SKILL)
$game_player.animation_id = (B_Ani::X_SKILL_ANI)
$game_player.refresh
end
end
end
simple but effective to spice it up a bit!
will continue to play with this call animation script
Administrator
Show Signature
Tutorial Wizardmaster
Tutorial Wizardmaster
Tutorial Wizardmaster
profile
calvin624
profile
Nice little script there Gameface - keep it coming
Tutorial Wizardmaster
Show Signature
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
Had to dust this one off and make an easy to use module ^,^
works like a charm with my XAS Creep script
~(G|F
works like a charm with my XAS Creep script
~(G|F
Administrator
Show Signature