ultimate sergioSáb Feb 02, 2013 12:18 am
Usuario Nv9
bueno,mas de uno sabra que el movimiento diagonal es algo importante en juegos resientes,asi que aqui lo tienen,creditos a moghunter:
no es competible con:si usas pixel movement,de victor engine,el personaje se vera raro,como un glith.
byeeee¡¡¡
- Spoiler:
- #==============================================================================
# +++ MOG - Simple Diagonal Movement (v1.0) +++
#==============================================================================
#
#
#==============================================================================
# Movimiento Diagonal
#==============================================================================
#==============================================================================
# ■ Diagonal Movement
#==============================================================================
class Game_Player < Game_Character
#--------------------------------------------------------------------------
# ● Move By Input
#--------------------------------------------------------------------------
def move_by_input
return unless movable?
return if $game_map.interpreter.running?
case Input.dir8
when 2,4,6,8; move_straight(Input.dir4)
when 1
move_diagonal(4, 2)
unless moving?
move_straight(4)
move_straight(2)
end
when 3
move_diagonal(6, 2)
unless moving?
move_straight(6)
move_straight(2)
end
when 7
move_diagonal(4,
unless moving?
move_straight(4)
move_straight(
end
when 9
move_diagonal(6,
unless moving?
move_straight(6)
move_straight(
end
end
end
end
$mog_rgss3_simple_diagonal_movement = true
no es competible con:si usas pixel movement,de victor engine,el personaje se vera raro,como un glith.
byeeee¡¡¡