Array Help
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
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.
![Image](http://img206.imageshack.us/img206/1604/untitled2ky.th.png)
- 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.
![Image](http://img206.imageshack.us/img206/1604/untitled2ky.th.png)