Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: deltamatrix on Fri 16/03/2007 01:27:07

Title: Skewing sprites
Post by: deltamatrix on Fri 16/03/2007 01:27:07

Hi,

I want to write a function/module that skews a sprite in AGS as there seems to be no native support for this.
I guess the down to earth question is, is this possible? I can't seem to find any rawdraw or dynamicsprite functions that allow me dynamic access to the pixels of a sprite.
Title: Re: Skewing sprites
Post by: SSH on Fri 16/03/2007 08:15:54
RawSaveBG
RawDraw Sprite on it somewhere
Get Dynamic Sprite of first row/column
RawDraw it again with skew
loop until all rows/columns done
Capture sprite
RestoreBG