LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



View previous topic View next topic Go down Message [Page 1 of 1]

Administrator
Administrator
#1 RMXP+XAS3.91 B.U.S. (Beat'em Up Style) Movement Empty RMXP+XAS3.91 B.U.S. (Beat'em Up Style) Movement
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
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"

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
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch
ACTIVATED

shogun3

avatar
ACTIVATED
ACTIVATED
ACTIVATED
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 Smile
What are the missing features that you will include in this script?
ACTIVATED
Show Signature
ACTIVATED
Administrator
Administrator
#3 RMXP+XAS3.91 B.U.S. (Beat'em Up Style) Movement Empty Re: RMXP+XAS3.91 B.U.S. (Beat'em Up Style) Movement
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
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
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 1 of 1]

 

Chatbox system disabled
Personal messaging disabled