name	 	Trubble
health		10
type		enemy
nomove		1 1
nodrop		2
nopain		1
nodieblink	2
facing		2
death		1
offscreenkill	150
antigravity	100
animationscript	data/chars/cobras/jetsc.c
takedamagescript data/scripts/blink.c

load		JetBullet

palette		data/chars/cobras/trubble.png
alternatepal	data/chars/cobras/trubblink.png


anim spawn
drawmethod 224 224
@script

  if(frame==1){
     void self = getlocalvar("self");
     changeentityproperty(self, "name", "Trouble_Bubble");
  }
@end_script
	delay	10
	offset	20 45
	attack	5 9 44 36 10 0 0 1
	frame	data/chars/cobras/trubble.png
	delay	100
	bbox	5 9 44 36
	@cmd	dasher -2 0 0 0
	frame	data/chars/cobras/trubble.png
	delay	10
	@cmd	dasher 0 0 0 0
	frame	data/chars/cobras/trubble.png

anim idle
drawmethod 224 224
	loop    1
	delay	1
	offset	20 45
	bbox	5 9 44 36
	attack	5 9 44 36 10 0 0 1
	frame	data/chars/cobras/trubble.png
	delay	20
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 46 0 2 0
	frame	data/chars/cobras/trubble.png
	delay	80
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 46 0 2 0
	frame	data/chars/cobras/trubble.png
	delay	400
	@cmd	dasher -3 0 0 0
	frame	data/chars/cobras/trubble.png


anim death
drawmethod 224 224
	delay	1
	offset	20 45
	frame	data/chars/cobras/trubble.png
	delay	20
	@cmd	dasher -2 -1 0 0
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	spawn01 "Asap" -13 15 1
	frame	data/chars/cobras/trubble.png
	@cmd	suicide
	frame	data/chars/cobras/trubble.png
