Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Kimbra on Mon 28/11/2011 09:27:19

Title: sprite position & scaling according to a trajectory
Post by: Kimbra on Mon 28/11/2011 09:27:19
Does AGS allow moving a sprite while changing its scale level on a trajectory?

I'm afraid what I'm trying to do is a little complicated. The sprite is a balloon deflating all around the screen. It's supposed to get (if AGS allows) smaller and (if AGS REALLY allows) rotates as well.

thanks a bunch!
Title: Re: sprite position & scaling according to a trajectory
Post by: Snarky on Mon 28/11/2011 10:00:33
AGS has functions to position, scale and rotate a sprite, yes. What you want to do is probably to make an object for the balloon, position it by setting the X and Y properties, use a DynamicSprite to scale and rotate it and set the Object.Graphic to the DynamicSprite's sprite number.

You'll have to work out the trajectory and all that stuff for yourself (or ask for more specific help).