[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Taking a part from character



Erik <br0ke@math.smsu.edu> wrote:
 
> this is ugly and probably highly inaccurate...
> 
> for(y=0;y<newheight;y++)
>     for(x=0;x<newwidth;x++)
>         newarray[x+(y*newwidth)]=oldarray[x+xoffset+(y+yoffset)*oldwidth];

Hey, great thanks! It took a while, but now I'm enlighted, I can do 
my game.