3D캐릭터 대게하는 스크립트인가
하여깐 모르겠소이다.
class Game_Character
#--------------------------------------------------------------------------
# 걶 긆긳긙긃긏긣룊딖돸
#--------------------------------------------------------------------------
alias walk_initialize initialize
def initialize
walk_initialize
@pattern_walk = [1,2,3,2] # 뺖뛱긬??깛봹쀱
@pattern_walkstep = 0 # 뺖뛱긬??깛
end
#--------------------------------------------------------------------------
# 걶 긲깒??뛛륷
#--------------------------------------------------------------------------
def update
# 긙긿깛긵뭷갂댷벍뭷갂믠?뭷궳빁딌
if jumping?
update_jump
elsif moving?
update_move
else
update_stop
end
# 귺긦긽긇긂깛긣궕띍묈뭠귩뮪궑궫뤾뜃
# 겍띍묈뭠궼갂딈?뭠 18 궔귞댷벍뫊뱗 * 1 귩덙궋궫뭠
if @anime_count > 18 - @move_speed * 2
# 믠?렄귺긦긽궕 OFF 궔궰 믠?뭷궻뤾뜃
if not @step_anime and @stop_count > 0
# 긬??깛귩긆깏긙긥깑궸뽣궥
@pattern = @original_pattern
# 믠?렄귺긦긽궕 ON 귏궫궼 댷벍뭷궻뤾뜃
else
# 긬??깛귩뛛륷 #룕궖듂궑갌믠?렄궴뺖뛱렄귩빁궚귡
@pattern_walkstep += 1
if @pattern_walkstep > 4
@pattern_walkstep = 1
end
@pattern = @pattern_walk[@pattern_walkstep-1]
# 궞궞귏궳
end
# 귺긦긽긇긂깛긣귩긏깏귺
@anime_count = 0
end
# 긂긃귽긣뭷궻뤾뜃
if @wait_count > 0
# 긂긃귽긣긇긂깛긣귩뙵귞궥
@wait_count -= 1
return
end
# 댷벍깑?긣떗맕뭷궻뤾뜃
if @move_route_forcing
# 긇긚??댷벍
move_type_custom
return
end
# 귽긹깛긣렳뛱뫲?뭷귏궫궼깓긞긏륉뫴궻뤾뜃
if @starting or lock?
# 렔뿥댷벍궼궢궶궋
return
end
# 믠?긇긂깛긣궕덇믦궻뭠 (댷벍븆뱗궔귞럁뢯) 귩뮪궑궫뤾뜃
if @stop_count > (40 - @move_frequency * 2) * (6 - @move_frequency)
# 댷벍?귽긵궳빁딌
case @move_type
when 1 # 깋깛??
move_type_random
when 2 # 뗟궱궘
move_type_toward_player
when 3 # 긇긚??
move_type_custom
end
end
end
end
하여깐 모르겠소이다.
class Game_Character
#--------------------------------------------------------------------------
# 걶 긆긳긙긃긏긣룊딖돸
#--------------------------------------------------------------------------
alias walk_initialize initialize
def initialize
walk_initialize
@pattern_walk = [1,2,3,2] # 뺖뛱긬??깛봹쀱
@pattern_walkstep = 0 # 뺖뛱긬??깛
end
#--------------------------------------------------------------------------
# 걶 긲깒??뛛륷
#--------------------------------------------------------------------------
def update
# 긙긿깛긵뭷갂댷벍뭷갂믠?뭷궳빁딌
if jumping?
update_jump
elsif moving?
update_move
else
update_stop
end
# 귺긦긽긇긂깛긣궕띍묈뭠귩뮪궑궫뤾뜃
# 겍띍묈뭠궼갂딈?뭠 18 궔귞댷벍뫊뱗 * 1 귩덙궋궫뭠
if @anime_count > 18 - @move_speed * 2
# 믠?렄귺긦긽궕 OFF 궔궰 믠?뭷궻뤾뜃
if not @step_anime and @stop_count > 0
# 긬??깛귩긆깏긙긥깑궸뽣궥
@pattern = @original_pattern
# 믠?렄귺긦긽궕 ON 귏궫궼 댷벍뭷궻뤾뜃
else
# 긬??깛귩뛛륷 #룕궖듂궑갌믠?렄궴뺖뛱렄귩빁궚귡
@pattern_walkstep += 1
if @pattern_walkstep > 4
@pattern_walkstep = 1
end
@pattern = @pattern_walk[@pattern_walkstep-1]
# 궞궞귏궳
end
# 귺긦긽긇긂깛긣귩긏깏귺
@anime_count = 0
end
# 긂긃귽긣뭷궻뤾뜃
if @wait_count > 0
# 긂긃귽긣긇긂깛긣귩뙵귞궥
@wait_count -= 1
return
end
# 댷벍깑?긣떗맕뭷궻뤾뜃
if @move_route_forcing
# 긇긚??댷벍
move_type_custom
return
end
# 귽긹깛긣렳뛱뫲?뭷귏궫궼깓긞긏륉뫴궻뤾뜃
if @starting or lock?
# 렔뿥댷벍궼궢궶궋
return
end
# 믠?긇긂깛긣궕덇믦궻뭠 (댷벍븆뱗궔귞럁뢯) 귩뮪궑궫뤾뜃
if @stop_count > (40 - @move_frequency * 2) * (6 - @move_frequency)
# 댷벍?귽긵궳빁딌
case @move_type
when 1 # 깋깛??
move_type_random
when 2 # 뗟궱궘
move_type_toward_player
when 3 # 긇긚??
move_type_custom
end
end
end
end