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
Loading

G@MeF@Ce

avatar
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
[You must be registered and logged in to see this link.]

then I recalled spritezilla requesting a starter kit for RXMP to make games like double dragon, [You must be registered and logged in to see this link.]
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??

[You must be registered and logged in to see this link.]
Administrator
Show Signature


Hey Guest, check out my demos!
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]




G101's theme colors
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this link.]

[You must be registered and logged in to see this image.]


shhh.... [You must be registered and logged in to see this link.]



[You must be registered and logged in to see this link.]
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 http://www.youtube.com/user/MrGameface101?feature=watch
ACTIVATED
ACTIVATED
#2 Re: RMXP+XAS3.91 B.U.S. (Beat'em Up Style) Movement
Loading

shogun3

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 Re: RMXP+XAS3.91 B.U.S. (Beat'em Up Style) Movement
Loading

G@MeF@Ce

avatar
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


Hey Guest, check out my demos!
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]
[You must be registered and logged in to see this link.]




G101's theme colors
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this link.]

[You must be registered and logged in to see this image.]


shhh.... [You must be registered and logged in to see this link.]



[You must be registered and logged in to see this link.]
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 http://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