Array Help
Posted: Tue Nov 29, 2005 1:50 am
I just now discovered somwhat how arrays work. Can someone tell me what's wrong with this code?
This is part of my "save canvas" code. The xmouse arrays are 240 and the ymouse arrays are 320.
- Code: Select all
xm1=&xmouse+120;
xm2=xmouse+120;
ym1=&ymouse+160;
ym2=ymouse+160;
if(draw == 1)
{
screen_to_actor(&xmouse, &ymouse);
xmouse1[xm1]=1;
xmouse2[xm2]=1;
ymouse1[ym1]=1;
ymouse2[ym2]=1;
lineto(xmouse, ymouse);
}
This is part of my "save canvas" code. The xmouse arrays are 240 and the ymouse arrays are 320.