Reply to Touch with other sprites than Dink.
If you don't have an account, just leave the password field blank.
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.
Here's the script so far.
void main(void)
{
int &x = 0;
sp_touch_damage(¤t_sprite, -1);
sp_speed(¤t_sprite, 5);
sp_base_walk(¤t_sprite, 850);
roll:
&x = sp_x(¤t_sprite,-1);
If(&x > 268)
{
move_stop(¤t_sprite, 4, 157, 1);
}
else
{
move_stop(¤t_sprite, 6, 400, 1);
}
goto roll;
}
void touch(void)
{
sp_touch_damage(¤t_sprite, 0);
freeze(1);
&life = 0
wait(100);
sp_que(1, -1);
goto roll;
}





