고급강의실

RPG Maker VX ACE - Animation 데이터 구조

by JunkMan posted Oct 15, 2014
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
RPG::Animation:0x6f24f94

@id=1//애니메이션 ID 

@name="Hit Physical"//애니메이션명

@animation1_name="Attack1"//그래픽 명
@animation1_hue=0//색채

@animation2_name=""//그래픽명
@animation2_hue=0//색채

그래픽명은 garaphic에 정의 내려진 정보를 가져와서
색채에 값으로 그림을 가져옵니다.

@position=1//위치 0~3 선택
0 : head
1 : center
2 : feet
3 : screen

@frame_max=10//프레임 최대치
최대 프레임 량을 뜻합니다.

@frames=[#<RPG::Animation::Frame:0x6f24e90 @cell_data=#<Table:0x6f24e40>, @cell_max=1>, #<RPG::Animation::Frame:0x6f24e18 @cell_data=#<Table:0x6f24df0>, @cell_max=1>, #<RPG::Animation::Frame:0x6f24ddc @cell_data=#<Table:0x6f24db4>, @cell_max=2>, #<RPG::Animation::Frame:0x6f24d8c @cell_data=#<Table:0x6f24d50>, @cell_max=2>, #<RPG::Animation::Frame:0x6f24d3c @cell_data=#<Table:0x6f24d00>, @cell_max=2>, #<RPG::Animation::Frame:0x6f24cd8 @cell_data=#<Table:0x6f24cb0>, @cell_max=2>, #<RPG::Animation::Frame:0x6f24c4c @cell_data=#<Table:0x6f24bd4>, @cell_max=2>, #<RPG::Animation::Frame:0x6f24bc0 @cell_data=#<Table:0x6f24b48>, @cell_max=1>, #<RPG::Animation::Frame:0x6f24b34 @cell_data=#<Table:0x6f24b0c>, @cell_max=1>, #<RPG::Animation::Frame:0x6f24aa8 @cell_data=#<Table:0x6f24a30>, @cell_max=1>]//애니메이션 데이터

그림의 정보를 가집니다. 어떤 모양을 정보로 가지고 있는지 표시하며, 이것에서 cell_max는 객체(그림)의 최대 갯수를 뜻하고, 테이블은 그 좌표값과 정보를 가지고 있습니다.

@timings=[#<RPG::Animation::Timing:0x6f24878 @flash_duration=1, @se=#<RPG::SE:0x6f24774 @name="Blow3", @pitch=100, @volume=95>, @flash_color=(255.000000, 255.000000, 255.000000, 221.000000), @frame=0, @flash_scope=1>, #<RPG::Animation::Timing:0x6f24620 @flash_duration=1, @se=#<RPG::SE:0x6f245bc @name="Blow1", @pitch=100, @volume=100>, @flash_color=(255.000000, 255.000000, 255.000000, 221.000000), @frame=2, @flash_scope=1>, #<RPG::Animation::Timing:0x6f244b8 @flash_duration=1, @se=#<RPG::SE:0x6f244a4 @name="Blow3", @pitch=100, @volume=100>, @flash_color=(255.000000, 255.000000, 255.000000, 221.000000), @frame=5, @flash_scope=1>]//프레임 시간조절
시간을 뜻하는 것으로 플레이 했을시 색상이나 알파값의 변화를 뜻합니다.

Frame은 그림의 정보, Timing은 거기에 맞춰진 그림의 색상정보입니다.