The Dink Network

Reply to Re: Why does the grunt wav sound super-low?

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:
 
 
January 4th 2013, 11:07 AM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Beware to set the touch damage to 0 first thing in the script, otherwise you risk the game freezing because it attempts to keep running the touch() procedure.

void main( void )
{
  // other things here
  sp_touch_damage(&current_sprite, -1);
}

void touch( void )
{
  sp_touch_damage(&current_sprite, 0);
  // other things here. Possibly involving hurt() and code to make it die.
}


If the sprite can somehow survive, remember to set the touch damage back to -1 after some delay, otherwise you'll continuously trigger the touch() procedure, which is probably not what you'd want.

If there's no way the sprite can survive, ignore that last paragraph