The Dink Network

Reply to Re: Invisible

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 8th 2011, 02:49 AM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
Yeah sorry I have sp_nodraw - my error - but it still doesnt work

So i can do this without fade down and redrawing the screen?

argg playing with it keeps making it worse lol

This is what I have
//summons magic and gives fireball

void main( void )
{
	//set this sprite to react to touch, but not to being hit
	sp_touch_damage(&current_sprite, -1);
	sp_nohit(&current_sprite, 1);
	//using this global variable to get around
	//a bug with Dink freezing as he touches and
	//tries to talk to the scroll at the same time
	&dddd = 0;
}

void touch( void )
{
	//first better check that there is a spare magic slot
	int &fmagic = free_magic();
	if (&fmagic < 1)
	{
		say_stop("Hmmm, the old backpack is full of magic", 1);
		//no free slot so let's exit this script
		return;
	}
	//now we can give the magic
	add_magic("item-fb", 437, 1);
	//add some razzle-dazzle
	playsound(43,22050,0,0,0);
	freeze(1);
	&save_x = sp_x(1, -1);
	&save_y = sp_y(1, -1);

// Summon sequence 
	preload_seq(38);
	sp_nodraw(1,0);
	sp_nodraw(&current_sprite,1);
	int &summon = create_sprite(312,257,4,38,1);
	sp_seq(&summon,38);
	sp_frame_delay(&summon,100);
	sp_brain(&summon, 7);
	sp_nodraw(1,1);
	wait(250);
	
	say_stop("I now have fireball.", 1);
	//shrink to this percent then die
	unfreeze(1);
	&dddd = 666;
	sp_brain_parm(&current_sprite, 5);
	sp_brain(&current_sprite, 12);
	sp_touch_damage(&current_sprite, 0);
	sp_timing(&current_sprite, 0);
	int &hold = sp_editor_num(&current_sprite);
	if (&hold != 0)
	{
		//this was placed by the editor, lets make it not come back
		editor_type(&hold, 1);
		//kill sprite forever
	}
}



Character walks up touches this scroll - scroll disappears, character disappears, he plays his summon sequence (but also tells me the backpack is full) he disappears and it freezes telling me -still- the back pak is full, therefore isnt playing thru to its conclusion... so what have I not done right?