Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Quintaros on Tue 18/11/2003 02:13:56

Title: scaling & sprite handles
Post by: Quintaros on Tue 18/11/2003 02:13:56
Is there any way to script a change in a character's scaling without using walkable area scaling?  Something like character[CHARID].scale?

Is there a way to specify which of the sprite's coordinates act as the handle?
Title: Re:scaling & sprite handles
Post by: MrColossal on Tue 18/11/2003 03:23:23
http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=9649

is this what you mean?

it's not an answer but it may be the same thing
Title: Re:scaling & sprite handles
Post by: Quintaros on Tue 18/11/2003 05:12:58
Right...I remember that thread now.  Okay what about the handle question, then?
Title: Re:scaling & sprite handles
Post by: MrColossal on Tue 18/11/2003 05:30:17
i don't think something like this is even close to possible with ags yet and setting a handle to scale by could be a suggestion for that thread maybe CJ can add in a corner to choose or an extra function like SetCharacterViewEx()



i hate leaving whole words off of important sentences
Title: Re:scaling & sprite handles
Post by: Timosity on Tue 18/11/2003 05:42:23
Quote from: MrColossal on Tue 18/11/2003 05:30:17
or an extra function like SetCharacterViewEx()

There is SetCharacterViewEx (CHARID, int view, int loop, align)

but you can only  ALIGN_LEFT, ALIGN_CENTRE or ALIGN_RIGHT

You probably mean another function within this function though, cause I don't think this would help in this particular situation.
Title: Re:scaling & sprite handles
Post by: Quintaros on Tue 18/11/2003 06:20:27
Well as I understand it the ALIGN_LEFT, CENTRE, RIGHT only applies to the bottom left, centre, or right pixels of a sprite but I'm looking for something that would allow you to select any pixel.  Additionally when you use flipped frames in a view and say ALIGN_LEFT does that mean the handle is the left pixel of the flipped frame or the original frame?