I am trying to learn how to make a worm game. And I found a tutorial here in the forum. I follow the tutorial and I get the error that says this:
unknown parameters
snake_cor_x
snake_cor_y
snake_pan
Can someone tell me why this is wrong and how to fix it.
the errors comes from this part of the script
Code:
action worm_move
{
worm = me;
my.narrow = on;
my.fat = off;
torso_nr = 0;
array_torso[torso_nr*4+0] = handle(me);
my.id_handle = torso_nr;
while(1)
{
torso_nr = my.id_handle;
my.pan %= 360;
camera_worm(); // Kamera
time_off += 1 * time;
if (key_cul == on && my.pan != 270 && time_off >= time_set)
{
my.snake_cor_x = my.x; // X-Wert bei Richtungswechsel
my.snake_cor_y = my.y; // Y-Wert bei Richtungswechsel
my.pan = 90; // Pan-Wert vom Worm
array_torso[(torso_nr)*4+1] = my.pan;
// Verwaltung im Array wird noch nicht verwendet
array_torso[(torso_nr)*4+2] = my.x;
// Verwaltung im Array wird noch nicht verwendet
array_torso[(torso_nr)*4+3] = my.y;
// Verwaltung im Array wird noch nicht verwendet
my.snake_pan = my.pan; // Pan-Wert bei Richtungswechsel
time_off = 0; // Ruhezeit für Richtungswechsel
}
worm_speed = 10 * time;
move_mode = use_box;
ent_move (worm_speed, nullvector);
wait(1);
}
}