sprite position & scaling according to a trajectory

Started by Kimbra, Mon 28/11/2011 09:27:19

Previous topic - Next topic

Kimbra

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!

Snarky

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).

SMF spam blocked by CleanTalk