ЩАсДобавлено (01 июня 2016, 21:50)
---------------------------------------------
Во:
[code]if sprite_index = bad_guy_jump {sprite_index = bad_guy_jump}// stops air running
sprite_index = bad_guy_walk // show the correct sprite
if dir = 1 { // if we are facing right
var i; // make a variable called i
for (i=0; i<6; i+=1)
{
if (place_free(x + wspeed, y - i)) // if there is a place free
{
x += wspeed; // move
y -= i;
break;
}
}
}
if dir = -1 { // same as above but for left
var i;
for (i=0; i<6; i+=1)
{
if (place_free(x - wspeed, y - i))
{
x -= wspeed;
y -= i;
break;
}
}
}
Добавлено (01 июня 2016, 21:50)
---------------------------------------------
Это скрипт