The Dink Network

Reply to Touch with other sprites than Dink.

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:
 
 
October 28th 2009, 01:39 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Ok, I've made a script for a boulder rolling back and forth across the room and killing Dink upon touch (See script below). Is there a way to check if another sprite than Dink touch the boulder and then take damage?

Here's the script so far.

void main(void)
{
	
	int &x = 0;
	sp_touch_damage(&current_sprite, -1);	
	sp_speed(&current_sprite, 5);	
	sp_base_walk(&current_sprite, 850);	
	roll:
	&x = sp_x(&current_sprite,-1);
	If(&x > 268)
	{
		move_stop(&current_sprite, 4, 157, 1);
	}
	else
	{
		move_stop(&current_sprite, 6, 400, 1);
	}	
	goto roll;			
}
void touch(void)
{
	sp_touch_damage(&current_sprite, 0);	
	freeze(1);
	&life = 0
	wait(100);
	sp_que(1, -1);
	goto roll;
}