Ok, really thank you so much evryone...and Drake, thanks for your excellent explaination.
I'm starting to get it i think, but i found a huge problem in a pattern i made.
I wanted to create a line of bullets that first go down, then after 90 frames the array start and each bullet go up,down,up,down,etc etc...
But i really can't grasp it...it's almost 2 hours of tryes!
task aimed{
loop{
let a = 0;
loop(30){
Bullet(32+a, GetY(), 2, 90, RED01, 60);
a += 20;
wait(5);
}
wait(60);
}
}
This is the line of bullet obj, and this
task Bullet(x, y, v, angle, graphic, delay) {
let obj=Obj_Create(OBJ_SHOT);
Obj_SetPosition(obj, x, y);
Obj_SetAngle(obj, angle);
Obj_SetSpeed(obj, v);
ObjShot_SetGraphic(obj, graphic);
ObjShot_SetDelay (obj, delay);
ObjShot_SetBombResist (obj, true);
wait(90);
let angles = [90, -90];
Obj_SetAngle(obj, angles[0,1]);
}
is the obj, where i tryed to set that the bullets had to go after 90 frames up,down,up,down,etc etc...
Before you say "where is the i, the lenght function explained before etc etc" , i tryed them too and the only thing i got was that all the bullets went up (so i guess only the -90 of the array worked).
I really don't understand where i do wrong... (even if i think that maybe my i don't return to 0, so it remains in the last place of the array, [-90] ) But... while, if and in geveral values++; never worked to me inside tasks.
Boh, again i need help, and again i'm here to bother you with this things that i realize are simple for most scripters...