The Dink Network

Reply to Re: trouble with void touch proc.

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:
 
 
March 16th 2010, 03:56 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
You need to give the sprite a touch damage.
Try this:

void main(void)
{
sp_touch_damage(&current_sprite, -1);
//This will make the engine check if dink is touching the sprite
}
void touch(void)
{
say("Does this work?", 1);
sp_touch_damage(&current_sprite, 0);
//We don't wanna crash the game
//So we have to disable touch for a while
wait(1000);
sp_touch_damage(&current_sprite, -1);
}