Quiest
I like turtles!
I just wanted to make sure you searched right
pix1=map_get_pixel(0,7,x+6*sine(angle),y+6*cos(angle));
pix2=map_get_pixel(0,7,x+5*sine(angle),y+5*cos(angle));
//...
pix5=map_get_pixel(0,7,x+2*sine(angle),y+2*cos(angle));
if(pix1==[collision color here]);
//Collision code here
end
if(pix2==//Etc.
PROCESS ctrlstick(x,y);
BEGIN
ctype=c_scroll; // He'll scroll with the background
scroll.camera=id; // The camera will focus on him during the scroll
graph=3;
loop
angle+=1600;
if (key(_left))
IF (map_get_pixel(0,7,(x-3),y)<>22)
x=x-3;
END
end
if (key(_right))
IF (map_get_pixel(0,7,(x+3),y)<>22)
x=x+3;
end
end
if (key(_up))
IF (map_get_pixel(0,7,x,(y-3))<>22)
y=y-3;
end
end
if (key(_down))
IF (map_get_pixel(0,7,x,(y+3))<>22)
y=y+3;
end
end
frame;
end;
end;
Sonic-NKT posted on Apr 13 2005 at 03:55 PM said:hehe i thought about the same yesterday in bed
would be nice if this would be possible in a way ..
loop;
angle+=1600;
if (key(_left)) //On the key detection, you just need the movement code
x=x-3;
end
if (key(_right))
x=x+3;
end
if (key(_up))
y=y-3;
end
if (key(_down))
y=y+3;
end
//Collision code (still has to be written xD) goes here
//and now, if a collision is detected
x=previous_x;
y=previous_y;
frame;
previous_x=x;
previous_y=y;
end;
PROCESS START();
PRIVATE
BEGIN
x=160;
y=195;
graph=9;
loop
z=30;
while (z=>-30)
z=z-1;
frame;
end;
end
end