name		Croc_Striker
health		1
speed		10
type		enemy
offscreenkill	450
gfxshadow	1
nodrop		1
death		1
icon		data/chars/crocodile/icon.png
score		100
palette		data/chars/crocodile/brown.png
animationscript	data/scripts/enemy.c

	
anim	spawn
@script

  if(frame==3){
     void self = getlocalvar("self");
     changeentityproperty(self, "name", "Crocodile");
  }
@end_script
	loop	1 12 16
	delay	12
	offset	240 82
	frame	data/chars/crocodile/walk3.png
	frame	data/chars/crocodile/walk4.png
	@cmd	dasher 2 0 0
	frame	data/chars/crocodile/walk1.png
	frame	data/chars/crocodile/walk2.png
	frame	data/chars/crocodile/walk3.png
	bbox	194 52 172 32
	frame	data/chars/crocodile/walk4.png
	@cmd	dasher 0 0 0
	delay	10
	frame	data/chars/crocodile/bite1.png
	frame	data/chars/crocodile/bite2.png
	frame	data/chars/crocodile/bite3.png
	frame	data/chars/crocodile/bite4.png
	frame	data/chars/crocodile/bite1.png
sound data/sounds/growll.wav
	@cmd	dasher 2 0 0
	attack2	286 46 95 37 15 0 0 0 10 15
	frame	data/chars/crocodile/bite6.png
	frame	data/chars/crocodile/bite7.png
	frame	data/chars/crocodile/bite8.png
	frame	data/chars/crocodile/bite5.png
	frame	data/chars/crocodile/bite6.png
	frame	data/chars/crocodile/bite7.png

anim	idle
	drawmethod 224 224
	loop	1
	delay	12
	offset	240 82
	bbox	194 52 172 32
	frame	data/chars/crocodile/walk1.png
	frame	data/chars/crocodile/walk2.png
	frame	data/chars/crocodile/walk3.png
	frame	data/chars/crocodile/walk4.png
	
anim	walk
	drawmethod 224 224
	loop	1
	delay	12
	offset	240 82
	bbox	194 52 172 32
	frame	data/chars/crocodile/walk1.png
	frame	data/chars/crocodile/walk2.png
	frame	data/chars/crocodile/walk3.png
	frame	data/chars/crocodile/walk4.png
	

anim	attack1
	range	0 500
	rangez	-50 50
	loop	1 3 7
	offset	240 82
	bbox	194 52 172 32
	delay	10
	frame	data/chars/crocodile/bite1.png
	frame	data/chars/crocodile/bite2.png
	frame	data/chars/crocodile/bite3.png
sound data/sounds/growll.wav
	@cmd	dasher 2 0 0
	attack2	286 46 95 37 15 0 0 0 10 15
	frame	data/chars/crocodile/bite8.png
	frame	data/chars/crocodile/bite5.png
	frame	data/chars/crocodile/bite6.png
	frame	data/chars/crocodile/bite7.png
	frame	data/chars/crocodile/bite8.png


anim	pain
	drawmethod 224 224
	delay	10
	offset	240 82
	bbox	194 52 172 32
	frame	data/chars/crocodile/pain1.png
	frame	data/chars/crocodile/pain2.png
	frame	data/chars/crocodile/pain3.png
	
anim	pain2
	drawmethod 224 224
	delay	10
	offset	240 82
	jumpframe 0 0 -2 0
	frame	data/chars/crocodile/fall1.png
	frame	data/chars/crocodile/fall2.png
	frame	data/chars/crocodile/fall3.png
	frame	data/chars/crocodile/fall4.png

anim	death
	drawmethod 224 224
	delay	10
	offset	240 82
	jumpframe 0 0 -2 0
	frame	data/chars/crocodile/fall1.png
	frame	data/chars/crocodile/fall2.png
	frame	data/chars/crocodile/fall3.png
	frame	data/chars/crocodile/fall4.png
	@cmd	dasher 0 0 0
	frame	data/chars/crocodile/fall1.png
	frame	data/chars/crocodile/fall2.png
	frame	data/chars/crocodile/fall3.png
	frame	data/chars/crocodile/fall4.png
	frame	data/chars/crocodile/fall1.png
	frame	data/chars/crocodile/fall2.png
	frame	data/chars/crocodile/fall3.png
	frame	data/chars/crocodile/fall4.png
