IonicWind Software

Aurora Compiler => 2D Graphics => Topic started by: Zen on July 03, 2006, 08:06:13 AM

Title: Resizing Sprites
Post by: Zen on July 03, 2006, 08:06:13 AM
How do i resize a sprite on the fly?

I have create a 1px x 25px image and depending on certain things i would like to make it so i resize the width, which is 1px at the start. I tried using SetStretchedSize but that doesnt seem to do anything. Any ideas?

Lewis
Title: Re: Resizing Sprites
Post by: Protected on July 03, 2006, 02:28:05 PM
When you create the sprite:

SetRenderMode(RENDER_SCALED);

or

SetRenderMode(RENDER_TRANSSCALED); (transparent and scaled)

Then SetScaleFactor works at least :P I don't have much time right now so I can't check in more detail, but there seems to be a RENDER_BLKSTRETCHED too. Check the full list of constants in the 2d library help file. For descriptions, check the IBasic one  ;D

Title: Re: Resizing Sprites
Post by: Zen on July 03, 2006, 02:57:49 PM
Ahh that was the key thing. I never set the render mode to SCALED too, i didnt think about that lol.

Thanks a lot
Lewis