begin_resource

sprite "main_player_3"
	default		"normal"
	file		"characc.ses"
end_sprite

end_resource




begin_character_setup
character "user_player_3"
	default			"character"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		100
	set_damage		49
	set_killid		1
	set_pivot		"60,60"
	keep_time		"150,150,100,50"
	add_collision	"37,49,92,77"
end_character

character "pl3bl_uts"
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		5
	set_killid		2
	set_pivot		"16,16"
	add_collision	"1,1,31,31"
end_character

character "pl3bl_expan"
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		5
	set_killid		2
	set_pivot		"16,16"
	add_collision	"1,1,31,31"
end_character

character "pl3bl_expan_small"
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		5
	set_killid		2
	set_pivot		"16,16"
	add_collision	"1,1,31,31"
end_character

character "pl3bl_uts_jet"
	default			"explo"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		5
	set_killid		2
	set_pivot		"16,16"
	add_collision	"1,1,31,31"
end_character


character "pl3bl_min"
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		70
	set_killid		2
	set_pivot		"8,8"
	add_collision	"1, 10, 48, 22"
end_character

character "pl3bl_mid"
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		100
	set_killid		2
	set_pivot		"8,8"
	add_collision	"1, 5, 48, 26"
end_character

character "pl3bl_max"
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		150
	set_killid		2
	set_pivot		"8,8"
	add_collision	"1,1,48,32"
end_character

character "pl3bl_mix"
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		50
	set_killid		2
	set_pivot		"8,8"
	add_collision	"1,13,48,20"
end_character

character "pl3bl_sos_bullet" 
	default			"ch_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		1
	set_damage		10
	set_killid		2
	set_pivot		"8,8"
	add_collision	"0,0,0,0"
end_character

character "pl3bl_sos_damage" 
	default			"ch_hit_bullet"
	set_sprite		"main_player_3"
	set_speed		1
	set_energy		60000
	set_damage		100
	set_killid		2
	set_pivot		"8,8"
	add_collision	"0,0,0,0"
end_character

begin_character_action




begin_character_action

action 	/"user_player_3",  "up"/
	move			/2,0, 0,-6, "normal",2/
					/2,1, 0,-6, "normal",2/
					/2,2, 0,-6, "normal",2/
					/2,3, 0,-6, "normal",2/
					/2,4, 0,-6, "normal",2/
					/2,5, 0,-6, "normal",2/
					/2,6, 0,-6, "normal",2/
					/2,7, 0,-6, "normal",2/
	:loop
	move			/2,7, 0,-6, "normal",2/
					/2,6, 0,-6, "normal",2/
					/2,5, 0,-6, "normal",2/
					/2,6, 0,-6, "normal",2/
					/2,7, 0,-6, "normal",2/
	goto			"loop"
end_action

action 	/"user_player_3",  "down"/
	move			/3,0, 0, 6, "normal",2/
					/3,1, 0, 6, "normal",2/
					/3,2, 0, 6, "normal",2/
					/3,3, 0, 6, "normal",2/
					/3,4, 0, 6, "normal",2/
					/3,5, 0, 6, "normal",2/
					/3,6, 0, 6, "normal",2/
					/3,7, 0, 6, "normal",2/
	:loop
	move			/3,7,  0, 6, "normal",2/
					/3,6,  0, 6, "normal",2/
					/3,5,  0, 6, "normal",2/
					/3,6,  0, 6, "normal",2/
					/3,7,  0, 6, "normal",2/
	goto 			"loop"
end_action

action 	/"user_player_3",  "left"/
	move			/1,0, -6,0, "normal",2/
					/1,1, -6,0, "normal",2/
					/1,2, -6,0, "normal",2/
					/1,3, -6,0, "normal",2/
					/1,4, -6,0, "normal",2/
					/1,5, -6,0, "normal",2/
					/1,6, -6,0, "normal",2/
					/1,7, -6,0, "normal",2/
	:loop
	
	move			/1,7, -6,0, "normal",2/
					/1,6, -6,0, "normal",2/
					/1,5, -6,0, "normal",2/
					/1,6, -6,0, "normal",2/
					/1,7, -6,0, "normal",2/
	goto			"loop"

end_action

action 	/"user_player_3",  "right"/
	move			/0,0, 6,0, "normal",2/
				 	/0,1, 6,0, "normal",2/
					/0,2, 6,0, "normal",2/
					/0,3, 6,0, "normal",2/
					/0,4, 6,0, "normal",2/
					/0,5, 6,0, "normal",2/
					/0,6, 6,0, "normal",2/
					/0,7, 6,0, "normal",2/
	:loop
	move			/0,7, 6,0, "normal",2/
					/0,6, 6,0, "normal",2/
					/0,5, 6,0, "normal",2/
					/0,6, 6,0, "normal",2/
					/0,7, 6,0, "normal",2/
	goto 			"loop"
end_action


action 	/"user_player_3",  "stand"/ 
	:loop
	move			/4,0,  0,0, "normal",3/
					/4,1,  0,0, "normal",3/
					/4,2,  0,0, "normal",3/
					/4,3,  0,0, "normal",3/
					/4,4,  0,0, "normal",3/
					/4,5,  0,0, "normal",3/
					/4,6,  0,0, "normal",3/
					/4,7,  0,0, "normal",3/
	goto 			"loop"
end_action


action 	/"user_player_3",  "struck"/ 
	:loop
	add_flag		/"undead", 100/
	add_flag		/"red_flash", 100/
	frame			/7,0, "normal",1/
					/7,1, "normal",1/
					/7,2, "normal",1/
					/7,3, "normal",1/
					/7,4, "normal",1/
					/7,5, "normal",1/
					/7,6, "normal",1/
					/7,7, "normal",1/
	frame			/7,5, "normal",1/
					/7,4, "normal",1/
					/7,3, "normal",1/
					/7,2, "normal",1/
					/7,1, "normal",1/
					/7,0, "normal",1/
end_action

 
action 	/"user_player_3",  "gone"/
	add_flag		/"trans", 20/
	
	move			/8,0, -1,0, "normal",2/
					/8,1, -1,0, "normal",2/
					/8,2, -1,0, "normal",2/
					/8,3, -2,0, "normal",2/

	create_angle 	/"bomb_air_l", 20,20, "vector",1/
	create_angle 	/"bomb_air_l", -20,-20, "vector",3/	
	create_angle 	/"bomb_air_lx",0,0, "vector",5/		
	
	move 			/8,4, -2,0, "normal",2/
					/8,5, -2,0, "normal",2/
					/8,6, -3,0, "normal",2/
					/8,7, -3,0, "normal",2/	
					
	
	add_flag		/"dead", 20/
end_action


action 	/"user_player_3",  "destroy"/ 
	add_flag		/"trans", 100/
	sub_flag		/"danger", 100/
	sub_flag		/"red_flash", 100/
	delete			"helperx"
	delete			"helperx2"
		
	move			/8,0, -1,0, "normal",2/
					/8,1, -1,0, "normal",2/
					/8,2, -1,0, "normal",2/
					/8,3, -2,0, "normal",2/
		
	create_angle 	/"bomb_air_l", 20,20, "vector",1/
	create_angle 	/"bomb_air_l", -20,-20, "vector",3/	
	create_angle 	/"bomb_air_lx",0,0, "vector",5/		
	
	move			/8,4, -2,0, "normal",2/
					/8,5, -2,0, "normal",2/
					/8,6, -3,0, "normal",2/
					/8,7, -3,0, "normal",2/
	add_flag		/"dead", 20/
end_action

action 	/"user_player_3",  "enter"/ 
	add_flag		/"trans", 40/
	add_flag		/"red_flash", 40/
	
	move			/0,0, 3,0, "normal",3/
					/0,1, 3,0, "normal",3/
					/0,2, 3,0, "normal",3/
					/0,3, 3,0, "normal",3/
					/0,4, 3,0, "normal",4/
					/0,5, 3,0, "normal",4/
					/0,6, 3,0, "normal",4/
					/0,7, 3,0, "normal",4/
	move			/0,0, 3,0, "normal",3/
					/0,1, 3,0, "normal",3/
					/0,2, 3,0, "normal",3/
					/0,3, 3,0, "normal",3/
					/0,4, 3,0, "normal",4/
					/0,5, 3,0, "normal",4/
					/0,6, 3,0, "normal",4/
					/0,7, 3,0, "normal",4/					
end_action


action 	/"user_player_3",  "metamorphosis"/ 
	add_flag		/"red_flash", 40/
	frame			/5,0, "normal",2/
					/5,1, "normal",2/
					/5,2, "normal",2/
					/5,3, "normal",2/
					/5,4, "normal",2/
					/5,5, "normal",2/
					/5,6, "normal",2/
					/5,7, "normal",2/					
	metamorphosis
end_action


action 	/"user_player_3",  "revmetamorphosis"/ 
	frame			/5,7, "normal",2/
					/5,6, "normal",2/
					/5,5, "normal",2/
 					/5,4, "normal",2/
 					/5,3, "normal",2/
 					/5,2, "normal",2/
 					/5,1, "normal",2/
 					/5,0, "normal",2/
end_action


action 	/"user_player_3",  "fire"/ 
		
	if_eq			/"level1",  "level", "self","0"/
	if_eq			/"level2",  "level", "self","1"/
	if_eq			/"level3",  "level", "self","2"/
	if_eq			/"level4",  "level", "self","3"/
	
	:level1	
	create_angle 	/"pl3bl_mix", 85,35, 0,0/
	create_angle 	/"pl3bl_mix", 85,45, 0,0/
	goto			"end"


	:level2			
	create_angle 	/"pl3bl_min", 85,33, 0,0/
	create_angle 	/"pl3bl_min", 85,47, 0,0/
	goto			"end"

	:level3		
	create_angle 	/"pl3bl_mix", 85,23, 0,0/
	create_angle 	/"pl3bl_mid", 85,40, 0,0/
	create_angle 	/"pl3bl_mix", 85,57, 0,0/
	goto			"end"
	
	:level4		
	create_angle 	/"pl3bl_mix", 85,18, 0,0/
	create_angle 	/"pl3bl_max", 85,40, 0,0/
	create_angle 	/"pl3bl_mix", 85,62, 0,0/

	:end
	playwave "laser0000"
end_action

action 	/"user_player_3",  "sos"/ 

	create_angle 	/"pl3bl_sos_damage", 	80,40, 0,1/

end_action




action /"pl3bl_min", "create"/	
	:loop
	move			/12,0,  16,0, "normal",0/
					/12,1,  16,0, "normal",0/
	goto			"loop"
end_action

action /"pl3bl_mid", "create"/
	
	:loop
	move			/12,2,  16,0, "normal",0/
					/12,3,  16,0, "normal",0/
	goto			"loop"
end_action

action /"pl3bl_max", "create"/
	
	:loop
	move			/12,4,  16,0, "normal",0/
					/12,5,  16,0, "normal",0/
	goto			"loop"
end_action

action /"pl3bl_mix", "create"/
	
	:loop
	move			/12,6,  16,0, "normal",0/
					/12,7,  16,0, "normal",0/
	goto			"loop"
end_action

action /"pl3bl_min", "destroy"/
	playwave "gun0003"
	create_angle /"bomb_bullet_s", -10,-5, "vector",1/
	kill_oneself
end_action

action /"pl3bl_mid", "destroy"/
	playwave "gun0003"
	create_angle /"bomb_bullet_s", -10,-5, "vector",1/
	kill_oneself
end_action

action /"pl3bl_max", "destroy"/
	playwave "gun0003"
	create_angle /"bomb_bullet_s", -10,-5, "vector",1/
	kill_oneself
end_action

action /"pl3bl_mix", "destroy"/
	playwave "gun0003"
	create_angle /"bomb_bullet_s", -10,-5, "vector",1/
	kill_oneself
end_action





action /"pl3bl_expan_small", "create"/

		move	/0,0, "vector",1, "normal",1/		
		move	/0,0, "vector",2, "normal",2/		
		move	/0,0, "vector",3, "normal",2/		
		move	/0,0, "vector",4, "normal",2/	
		move	/0,0, "vector",5, "normal",2/	

:loop

		move	/0,0, "vector",6, "normal",2/  0,0, "vector",6, "normal",2/ 
				/0,0, "vector",6, "normal",2/  0,0, "vector",6, "normal",2/  

		goto_loop	/"loop",	10/
		kill_oneself

end_action





action /"pl3bl_expan", "create"/
	

	move			/0,1,  10,-10, "normal",3/	0,1,  8,-8, "normal",3/
					/0,1,  5,-5, "normal",3/	0,1,  3,-3, "normal",3/

	:loop

	
	
	
	
	
	

	create_angle 	/"pl3bl_expan_small", 5,5, 0,1/
	create_angle 	/"pl3bl_expan_small", 5,5, 45,1/
	create_angle 	/"pl3bl_expan_small", 5,5, 90,1/	
	create_angle 	/"pl3bl_expan_small", 5,5, 135,1/	
	create_angle 	/"pl3bl_expan_small", 5,5, 180,1/
	create_angle 	/"pl3bl_expan_small", 5,5, 225,1/
	create_angle 	/"pl3bl_expan_small", 5,5, 270,1/
	create_angle 	/"pl3bl_expan_small", 5,5, 315,1/

	move			/0,1,  0,0, "normal",10/
	move			/0,1,  3,-3, "normal",30/
	
	goto_loop		/"loop",	3/
	
	kill_oneself

end_action



action /"pl3bl_uts", "create"/

		
		
		
		set_pivot		"16,16"
		set_sp_pivot	"1,16"

		
		
		
		set_vector		/"angle",270, 3/

:up1
		move			/9,24, "vector",1, "normal",2/
		create_r_pv 	/"attractlx_bullet_jet", -17,-17/ 
		goto_loop 		/"up1",2/

:up2
		move			/9,24, "vector",2, "normal",2/
		create_r_pv 	/"attractlx_bullet_jet", -17,-17/ 
		goto_loop 		/"up2",3/

		
		
		
:loop	
			
			
			
		induce 			/9,0,   32,1,0,		3, "normal",2/ 
			
			
			
		create_r_pv 	/"pl3bl_uts_jet", 0,0/ 
			
			
			
		vector_induce 	/"enemy", 2/
			
			
			
			
			
		goto_loop 		/"loop",24/

		
		
		
:loop2
		 induce 		/9,0,   32,1,0,		2, "normal",2/ 
		 goto 			"loop2"


end_action



action /"pl3bl_uts_jet", "create"/

		
		
		
		set_vector /"mod", "x", "div", 2/
		set_vector /"mod", "y", "div", 2/
		set_vector /"mod", "x", "mul", -1/
		set_vector /"mod", "y", "mul", -1/

:loop
		move	/10,0, "vector",1, "normal",1/	10,2, "vector",1, "normal",1/
				/10,4, "vector",1, "normal",1/	10,6, "vector",1, "normal",1/
				/10,8, "vector",1, "normal",1/	10,10, "vector",1, "normal",1/
				/10,12, "vector",1, "normal",1/	10,14, "vector",1, "normal",1/
				/10,16, "vector",1, "normal",1/	10,18, "vector",1, "normal",1/
				/10,20, "vector",1, "normal",1/

		kill_oneself

end_action


action /"pl3bl_sos_bullet", "create"/

	move			/9,0,  15,0, "normal",1/	9,1,  15,0, "normal",1/
					/9,2,  12,0, "normal",1/	9,3,  9,0, "normal",1/
					/9,4,  6,0, "normal",1/		9,5,  5,0, "normal",1/
					/9,6,  5,0, "normal",1/		9,7,  5,0, "normal",1/
					/9,8,  5,0, "normal",1/		9,9,  5,0, "normal",1/
					/9,10,  5,0, "normal",1/	9,11,  5,0, "normal",1/
					/9,12,  5,0, "normal",1/	9,13,  5,0, "normal",1/
					/9,14,  5,0, "normal",1/	9,15,  5,0, "normal",1/
:loop

	move			/9,0,  5,0, "normal",1/		9,1,  5,0, "normal",1/


	thunder
	create_angle /"bomb_air_lx", -69,-74, "vector",1/ 		
	kill_oneself

end_action

action /"pl3bl_sos_damage", "create"/

	
	set_vector /"mod", "locx", "set", 0/
	set_vector /"mod", "locy", "set", 0/
	reset_collision

	thunder

	create_angle 	/"pl3bl_sos_bullet", 	-138,71, 0,1/
	create_angle 	/"pl3bl_sos_bullet", 	106,176, 0,1/
	create_angle 	/"pl3bl_sos_bullet", 	235,41, 0,1/
	
	move	/0,30,	0,0,	"normal",	5/
	add_collision	"0,0,640,480"

	create_angle 	/"pl3bl_sos_bullet", 	-111,442, 0,1/
	create_angle 	/"pl3bl_sos_bullet", 	169,396, 0,1/
	create_angle 	/"pl3bl_sos_bullet", 	410,407, 0,1/

	move	/0,30,	0,0,	"normal",	5/

	create_angle 	/"pl3bl_sos_bullet", 	-140,236, 0,1/	
	create_angle 	/"pl3bl_sos_bullet", 	38,-10, 0,1/
	create_angle 	/"pl3bl_sos_bullet", 	402,83, 0,1/

	move	/0,30,	0,0,	"normal",	5/

	create_angle 	/"pl3bl_sos_bullet", 	8,328, 0,1/
	create_angle 	/"pl3bl_sos_bullet", 	309,229, 0,1/

	move	/0,30,	0,0,	"normal",	80/
	reset_collision

	kill_oneself

end_action



end_character_action

