W Create mam dwa Excute a piece code , w pierwszym nie mam nic a w drugim
direction=90;
aktualny=90;
image_single=direction/7;
speed=2;
alarm[0]=20;
W Alarm 0 mam Excute a piece code , a w nim
if direction==aktualny
{
liczba=floor(random(4.99));
switch (liczba)
{
case 0: aktualny=0; break;
case 1: aktualny=90; break;
case 2: aktualny=180; break;
case 3: aktualny=270; break;
}
speed=2;
alarm[0]=20;
}
else
{
if direction<aktualny direction+=5 else direction-=5;
speed=0;
image_single=direction/7;
alarm[0]=1;
}
I w Step mam w Excute a piece code
depth=-y;
{
direction = choose(90,0,180,270)
speed=2;
sprite_index=sVladWup;
image_speed=0.4;
}
{
direction = choose(90,0,180,270)
speed=2;
sprite_index=sVladWdown;
image_speed=0.4;
}
{
direction = choose(90,0,180,270)
speed=4;
sprite_index=sVladWleft;
image_speed=0.4;
}
{
direction = choose(90,0,180,270)
speed=4;
sprite_index=sVladWrigt;
image_speed=0.4;
}
{
speed=0;
image_speed=0;
image_index=0;
}
I zrobiłem to co mówił 47xxxxxxxx i dalej nie działa