Guest Access
ACTIVATED
ACTIVATED
ACTIVATED
profile
shogun3
profile
Here is a very simple and useful script of mine to be used with XAS in order to create beat'em ups, with characters only facing left or right.
- Code:
class Game_Character
def turn_down
if $game_switches[6]
unless @direction_fix
@direction = 2
@stop_count = 0
else
end
end
end
def turn_up
if $game_switches[6]
unless @direction_fix
@direction = 8
@stop_count = 0
else
end
end
end
end
class Game_Player < Game_Character
def move_by_input
return unless movable?
return if $game_map.interpreter.running?
case Input.dir8
when 1; move_lower_left
when 2; move_down
when 3; move_lower_right
when 4; move_left
when 6; move_right
when 7; move_upper_left
when 8; move_up
when 9; move_upper_right
end
end
end
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
Cool, its sometimes the little things that make all the diffrence in how a game handles. Not saying those little things are easy, cause don't get me wrong i've had code 10 lines long and be quite confusing.
It's cool that you where able to look threw the system and find the nessesary edits to make your goal a reality, and then to share that with anyone else that was looking. Nice job.
It's cool that you where able to look threw the system and find the nessesary edits to make your goal a reality, and then to share that with anyone else that was looking. Nice job.
EVENTALIST
Show Signature
EVENTALIST
GAMEFACE101 » MEDIA » PLAY with CODE! » PLAY with CODE (scripts and software) » RGSS (RMXP SCRIPTS) »Beat'em up movement
Similar topics