name	 	MorayW
health		70
type		enemy
nomove		1 1
nodrop		2
nopain		1
nodieblink	2
facing		1
death		1
antigravity	100
offscreenkill	300
subject_to_platform 0
animationscript	data/chars/cobras/jetsc.c
takedamagescript data/scripts/blink.c

load		JetBullet

palette		data/chars/cobras/moray.png
alternatepal	data/chars/cobras/morblink.png


anim spawn
	delay	1
	offset	80 45
	bbox	5 34 224 53
	frame	data/chars/cobras/morayf.png
	delay	180
	#@cmd	dasher 2.5 0 0 1
	frame	data/chars/cobras/morayf.png
	delay	20
	#@cmd	dasher 0 0 0 1
	frame	data/chars/cobras/morayf.png

anim idle
	loop    1
	delay	10
	offset	80 45
	#bbox	13 42 200 27
bbox	5 34 224 53
	attack	13 42 200 27 40 0 0 0 10
	frame	data/chars/cobras/morayw.png
	@cmd	attack1 -60 40 40 200 "ANI_FOLLOW1"
	@cmd	attack1 0 500 -20 40 "ANI_FOLLOW1"
	@cmd	attack1 0 500 40 200 "ANI_FOLLOW1"
	@cmd	attack1 -350 0 -20 40 "ANI_FOLLOW1"
	@cmd	attack1 -350 0 40 200 "ANI_FOLLOW1"
	frame	data/chars/cobras/morayw.png



anim follow1
loop    1
	delay	10
	offset	80 45
	bbox	5 34 224 53
	attack	13 42 200 27 40 0 0 0 10
	frame	data/chars/cobras/morayf.png
@cmd	dasher -0.5 0 0 1
sound data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet"  35 28 -1.5 -0.2
	frame	data/chars/cobras/morayf.png
sound data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet"  35 28 -1.5 0.2
	frame	data/chars/cobras/morayf.png
sound data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet"  35 28 -1.5 -0.2
	frame	data/chars/cobras/morayf.png
	attack	0
sound data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet"  35 28 -1.5 0
	frame	data/chars/cobras/morayf.png
	delay	200
	attack	13 42 200 27 40 0 0 0 10
sound data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet"  35 28 -1.5 0.2
	frame	data/chars/cobras/morayf.png
	delay	10
	#@cmd	attack1 -60 40 40 200 "ANI_FOLLOW5"
	#@cmd	attack1 0 500 40 200 "ANI_FOLLOW2"
	#@cmd	attack1 0 500 -20 40 "ANI_FOLLOW1"
	#@cmd	attack1 -500 -20 40 200 "ANI_FOLLOW4"
	frame	data/chars/cobras/morayf.png







anim	death
	drawmethod	220 220
	delay	1
	offset	45 65#35
	frame	data/chars/cobras/morayw.png
	delay	15
	@cmd	dasher 0 -1 0 0
	@cmd	spawn01 "Asap" -40 9 1
	@cmd	spawn01 "Asap" 0 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" -20 9 1
	@cmd	spawn01 "Asap" 40 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" 20 9 1
	@cmd	spawn01 "Asap" 60 9 1
	frame	data/chars/cobras/morayw.png #
	@cmd	spawn01 "Asap" -40 9 1
	@cmd	spawn01 "Asap" 0 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" -20 9 1
	@cmd	spawn01 "Asap" 40 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" 20 9 1
	@cmd	spawn01 "Asap" 60 9 1
	frame	data/chars/cobras/morayw.png #
	@cmd	spawn01 "Asap" -40 9 1
	@cmd	spawn01 "Asap" 0 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" -20 9 1
	@cmd	spawn01 "Asap" 40 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" 20 9 1
	@cmd	spawn01 "Asap" 60 9 1
	frame	data/chars/cobras/morayw.png #
	@cmd	spawn01 "Asap" -40 9 1
	@cmd	spawn01 "Asap" 0 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" -20 9 1
	@cmd	spawn01 "Asap" 40 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" 20 9 1
	@cmd	spawn01 "Asap" 60 9 1
	frame	data/chars/cobras/morayw.png #
	frame	data/chars/cobras/morayw.png #
	@cmd	spawn01 "Asap" -40 9 1
	@cmd	spawn01 "Asap" 0 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" -20 9 1
	@cmd	spawn01 "Asap" 40 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" 20 9 1
	@cmd	spawn01 "Asap" 60 9 1
	frame	data/chars/cobras/morayw.png #
	@cmd	spawn01 "Asap" -40 9 1
	@cmd	spawn01 "Asap" 0 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" -20 9 1
	@cmd	spawn01 "Asap" 40 9 1
	frame	data/chars/cobras/morayw.png
	@cmd	spawn01 "Asap" 20 9 1
	@cmd	spawn01 "Asap" 60 9 1
	frame	data/chars/cobras/morayw.png #
	@cmd	suicide
	frame	data/chars/cobras/morayw.png
