The Dink Network

Boss Size Hardness Box

June 3rd 2010, 09:59 PM
pq_knight.gif
ExDeathEvn
Peasant He/Him New Zealand rumble
"Skinny Legend" 
I've been trying to fix this for ages. I swear someone gave me the answer a while ago, but I've forgotten it and been working on other parts of FoD instead, so here's my question.

In the first Boss Battle, Dink fights an enlarged slime but the slime's hardness box remains fixed to that of a regular slime. I've checked the DinkC Reference book with no luck in sorting the problem, because the solution it mentions involved load_sequence_now codes that I haven't got in the script.
How can I fix this?

The slime spawns in place of another sprite (morphing, according to the storyline).

	playsound(24, 22052, 0, 0, 0);
	&explo = create_sprite(363, 192, 7, 167, 1);
	sp_seq(&explo, 167);
	sp_seq(&current_sprite, 691);
	sp_frame(&current_sprite, 1);
	sp_size(&current_sprite, 360);


Is there some way to set the combat sprite's hardness box by modifying the create_sprite section? Or do I need to do something else?
June 4th 2010, 05:48 AM
bonca.gif
Erwin
Peasant He/Him Netherlands
Friendship is magic 
I think I gave you the answer a while ago in the Dink chat. One way to solve the problem is to use a different sprite with the correct hardness box. So all you have to do is add some graphics of an enlarged slime and set it's hardness box just like you do with every other sprite.

I think I also explained that if you don't have enough graphic slots you can temporarily load the enlarged slime in some graphic slots you don't use at that time using init().