[VX]-Caminando estilo paper mario-[Aporte]

OP

~Doku

Banneado
Mensajes
1.024
Reacciones
0
Puntos
0
Ubicación
Mafia
Aquí traigo este script que me encontré por ahí.

Explicación:

Lo que hace este script es que te permite caminar al estilo paper mario, osea solo usa los sprites de izquierda y derecha para caminar en todas las direcciones.

Script:

Código:
=begin
                            Paper Mario Walk
Version = 0.2
Author = BulletXt ([email protected])

Description:
This script will make you move up/down keeping direction animation fixed
to lef/right like in sideview arcade games.

=end

#this is a switch ID, if ON it restores normal VX walking. By default this
#switch is OFF.
DISABLE_SCRIPT = 1

#this is the initial position player faces when game starts.
#possible values are: "left"  or  "right"
STARTING_POSITION_DIRECTION = "right"


########################## END CONFIGURATION ###################################



if STARTING_POSITION_DIRECTION == "right"
POSITION = 4  
else
POSITION = 6    
end



class Game_Character

  alias bulletxt_move_down_paper move_down
  def move_down(turn_ok = true)
  current_direction = @direction
  bulletxt_move_down_paper(turn_ok = true)  
  return if $game_switches[DISABLE_SCRIPT]
  turn_right if current_direction == 6
  turn_left if current_direction == 4
  end
  
  
  
  alias bulletxt_move_up_paper move_up
  def move_up(turn_ok = true)
  current_direction = @direction
  bulletxt_move_up_paper(turn_ok = true) 
  return if $game_switches[DISABLE_SCRIPT]
  turn_right if current_direction == 6
  turn_left if current_direction == 4
  end

end 


class Game_Player < Game_Character
  alias bulletxt_paper_initialize initialize
  #set position at game start
  def initialize
    bulletxt_paper_initialize
    return if $game_switches[DISABLE_SCRIPT]
    set_direction(POSITION) if @direction == 2 or @direction == 8 
  end 
  
  alias bulletxt_perform_transfer_paper perform_transfer
  #set position at map transfer in case player is facing up or down
  def perform_transfer
    bulletxt_perform_transfer_paper
    return if $game_switches[DISABLE_SCRIPT]
    set_direction(POSITION) if @direction == 2 or @direction == 8 
  end
  
end

Saludos.

~Night Shade~
 
Arriba Pie