Guest Access
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
Hey guys, I've been brushing up on my ruby/rgss and have been working on some new platforming scripts (yes pural) and came across a code snippet that shogun3 had shared a few years ago
http://gameface101.playogame.com/t1147-beat-em-up-movement?highlight=beat+em+up
then I recalled spritezilla requesting a starter kit for RXMP to make games like double dragon, http://gameface101.playogame.com/t1486-beat-em-up-kit-request?highlight=beat+em+up
well with this script it is so possible using XAS3.91 you could make a ninja turtle game ^,^
It's just a start towards my new adventures in RGSS as I have been forcing myself to learn, I still script like a baby, but I'm starting to walk alone (can't wait until I start running with it)
demo later, first version of script for now +
Instructions:
simply place above script "XAS - Movement 1"
* toggle via switch *
~there's 1 or 2 more features to be added then complete ++
got RMXP? need XAS??
http://gameface101.playogame.com/t110-xas-xiderowg-action-system
http://gameface101.playogame.com/t1147-beat-em-up-movement?highlight=beat+em+up
then I recalled spritezilla requesting a starter kit for RXMP to make games like double dragon, http://gameface101.playogame.com/t1486-beat-em-up-kit-request?highlight=beat+em+up
well with this script it is so possible using XAS3.91 you could make a ninja turtle game ^,^
It's just a start towards my new adventures in RGSS as I have been forcing myself to learn, I still script like a baby, but I'm starting to walk alone (can't wait until I start running with it)
demo later, first version of script for now +
Instructions:
simply place above script "XAS - Movement 1"
- Code:
################################################################################
# RMXP+XAS3.91 B.U.S. Movement (Beat'em Up Style Movement) by G@MeF@Ce 4/10/2013
# * working on a way that the player will face left/right at start
################################################################################
module BUSM
BUSM_DISABLE = 999 #switch ID to disable Beat'em Up Style Movement when on
end
#--------------------------------------------------------------------------
# ● Game_Character
#--------------------------------------------------------------------------
class Game_Character
include BUSM
#--------------------------------------------------------------------------
# ● Turn Down
#--------------------------------------------------------------------------
def turn_down
if $game_switches[BUSM_DISABLE]
unless @direction_fix
@direction = 2
@stop_count = 0
else
end
end
end
#--------------------------------------------------------------------------
# ● Turn Up
#--------------------------------------------------------------------------
def turn_up
if $game_switches[BUSM_DISABLE]
unless @direction_fix
@direction = 8
@stop_count = 0
else
end
end
end
end # end of Game_Character class
#--------------------------------------------------------------------------
# ● Game_Character < Game_Character
#--------------------------------------------------------------------------
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# * Update
#--------------------------------------------------------------------------
alias bus_update update
def update
unless $game_switches[BUSM_DISABLE]
case Input.dir8
when 1
turn_left
when 2
turn_down
when 3
turn_right
when 4
turn_left
when 6
turn_right
when 7
turn_left
when 8
turn_up
when 9
turn_right
end
end
bus_update
end
end #end of Game_Player < Game_Character class
* toggle via switch *
~there's 1 or 2 more features to be added then complete ++
got RMXP? need XAS??
http://gameface101.playogame.com/t110-xas-xiderowg-action-system
Administrator
Show Signature
ACTIVATED
ACTIVATED
ACTIVATED
profile
shogun3
profile
Good job Gameface! I am glad my little snippet is still useful, I am actually still using that to implement the b.u.s movement in my game, but I might have to switch to your script
What are the missing features that you will include in this script?
What are the missing features that you will include in this script?
ACTIVATED
Show Signature
ACTIVATED
Administrator
Administrator
Administrator
profile
G@MeF@Ce
profile
last I left off with this was having an option to set the players starting face direction by variable and to have the diagonal poses match with movements if diagonal is true, I could fuse it with some Gplat to include pixel movement and jump. This with XAS reminds me of some classics; renegade, river city ransom, double dragon, ninja turtles, golden axe ^,^
Administrator
Show Signature