Smartbomb item

kimono

Well-known member
Hi, I'm trying to make a smartbomb item that is activated by picking it like a normal item.
Here is the current command:
Code:
name			Fireflybox
type			item
candamage 		enemy
health			8
nolife			1
facing 			1
gfxshadow		1 1
offscreenkill	50
stealth			1

anim idle
	loop	1
	delay	20
	offset	10 28
	bbox 0 0 20 28
	followanim 1
	followcond 1
	nodrawmethod
	frame	data/chars/items/fireflybox1.png
	frame	data/chars/items/fireflybox2.png
	frame	data/chars/items/fireflybox3.png
	frame	data/chars/items/fireflybox4.png
	frame	data/chars/items/fireflybox1.png
	frame	data/chars/items/fireflybox2.png
	frame	data/chars/items/fireflybox3.png
	frame	data/chars/items/fireflybox4.png
	frame	data/chars/items/fireflybox1.png
	frame	data/chars/items/fireflybox2.png
	frame	data/chars/items/fireflybox3.png
	frame	data/chars/items/fireflybox4.png
	frame	data/chars/items/fireflybox1.png
	frame	data/chars/items/fireflybox2.png
	frame	data/chars/items/fireflybox3.png
	frame	data/chars/items/fireflybox4.png
	delay	6
	drawmethod tintmode 1
	drawmethod tintcolor 150_150_150
	frame	data/chars/items/fireflybox1.png

anim follow1
	delay	12
	offset	117 111
	bbox 107 83 20 28
	drawmethod alpha 6
	attack1 77 63 80 66 8 1 0 0 0 0
	frame	data/chars/items/firefly_explosion1.png
	frame	data/chars/items/firefly_explosion2.png
	attack1 59 48 117 99 8 1 0 0 0 0
	frame	data/chars/items/firefly_explosion3.png
	frame	data/chars/items/firefly_explosion4.png
	attack1 -200 -88 600 400 8 1 0 0 0 0
	frame	data/chars/items/firefly_explosion5.png
	frame	data/chars/items/firefly_explosion6.png
	frame	data/chars/misc/empty.gif

The item is picked up but nothing happens. Maybye should I declare it as a weapon and make it explode at its idle state?
What do you think about it and thanks for your help  :).
 
Thanks Paulo HP Bender, currently I set this smartbomb as a weapon activated by an attack and being used only one time before it disappeared.
I'm curious of others members of the forum have a method to activate the bomb when it's picked up 💣.
 
Back
Top Bottom