The Dink Network

Reply to Re: Touch Stuff

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:
 
 
April 8th 2008, 05:34 AM
spike.gif
It sounds like the button brain would be ideal for this. (Otherwise you need to set touch damage to 0 when Dink steps on the pad or void touch will repeat over and over again, and again to -1 when Dink gets off)

//add in void main
sp_brain(&current_sprite,14);

//replace void touch with
void buttonon()
{
sp_seq(&current_sprite, 100);
sp_frame(&current_sprite, 1);
sp_brain(&current_sprite, 6);
if (&current_sprite == &light1)
{
say_stop("Hello!", 1);
}
}

You were also missing one = in the if-check.