Blocker Script problem
Hi folks,
I'm slowly teaching myself dink c and have quite a few scripts done for the dmod I'm making to teach myself but one simple blocker script is causing me trouble. I read the author files (have made a small book with all of the author tutorials everybody has provided - my thanks to everyone that has published) I even cut and pasted from one tutorial straight into the script but it still doesn't work. Dink hits the block (a table in this case that has had the hardblock area enlarged and then I nibbled away the graphic until it was gone. I did not make the sprite type 2.) he says the line, does not move away from the block but seems to get stuck at it. Then the keyboard controls fail and I can't get him out. It's unrecoverable at that point. The script should be easy, I'm just doing something wrong. It is ;
//blocked bridge - SK
void main(void)
{
sp_touch_damage(¤t_sprite, -1);
}
void touch(void)
{
freeze(1);
move_stop(1, 6, 190, 1);
sp_dir(1, 4);
say_stop(""I'm not strong enough yet", 1);
unfreeze(1); }
Thanks in advance for your help guys.
SK
I'm slowly teaching myself dink c and have quite a few scripts done for the dmod I'm making to teach myself but one simple blocker script is causing me trouble. I read the author files (have made a small book with all of the author tutorials everybody has provided - my thanks to everyone that has published) I even cut and pasted from one tutorial straight into the script but it still doesn't work. Dink hits the block (a table in this case that has had the hardblock area enlarged and then I nibbled away the graphic until it was gone. I did not make the sprite type 2.) he says the line, does not move away from the block but seems to get stuck at it. Then the keyboard controls fail and I can't get him out. It's unrecoverable at that point. The script should be easy, I'm just doing something wrong. It is ;
//blocked bridge - SK
void main(void)
{
sp_touch_damage(¤t_sprite, -1);
}
void touch(void)
{
freeze(1);
move_stop(1, 6, 190, 1);
sp_dir(1, 4);
say_stop(""I'm not strong enough yet", 1);
unfreeze(1); }
Thanks in advance for your help guys.
SK