Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Joseph DiPerla on Mon 24/11/2003 19:56:56

Title: SetCharacterScaling
Post by: Joseph DiPerla on Mon 24/11/2003 19:56:56
I couldn't find a function that would manually set a characters scale size.

I know I could just get the walkable area's to edit it or recreate the size of my character.

But, I only need one character to be scaled. Is there anything I can do to edit his scaling? Maybe a script like SetCharacterScaling(Charid, Percent) would work, couldn't find it thogh.

JD
Title: Re:SetCharacterScaling
Post by: Alynn on Mon 24/11/2003 20:38:10
Set up your walkable area like normal with the scaling, and all the other characters you can set to ignore scaling in the character editor...
Title: Re:SetCharacterScaling
Post by: Joseph DiPerla on Mon 24/11/2003 20:57:24
Yeah, I could do that, but the problem is that the characters would ignore all scaling options in all rooms, while I would only need them to ignore the Scaling in that particular room.

JD
Title: Re:SetCharacterScaling
Post by: Ben on Mon 24/11/2003 21:05:31
You can set it throught the script too. Just use SetCharacterIgnoreScaling()
Title: Re:SetCharacterScaling
Post by: Scorpiorus on Mon 24/11/2003 21:16:32
Quote from: Ben on Mon 24/11/2003 21:05:31
You can set it throught the script too. Just use SetCharacterIgnoreScaling()
Yeah, but there is no such command exactly but you could do:

SetCharacterProperty (<CHARID>,CHAR_IGNORESCALING, 1); //turn ignore scaling on

SetCharacterProperty (<CHARID>,CHAR_IGNORESCALING, 0); //turn ignore scaling off

Title: Re:SetCharacterScaling
Post by: Ben on Mon 24/11/2003 22:26:49
Quote from: Scorpiorus on Mon 24/11/2003 21:16:32
Quote from: Ben on Mon 24/11/2003 21:05:31
You can set it throught the script too. Just use SetCharacterIgnoreScaling()
Yeah, but there is no such command exactly but you could do:

Crap. I got it confused with the IgnoreLight function. Guess I should read the manual. :P
Title: Re:SetCharacterScaling
Post by: Pumaman on Mon 24/11/2003 23:03:43
Adding some sort of SetCharacterScaling command is on my list though, because it would be handy to have.
Title: Re:SetCharacterScaling
Post by: Joseph DiPerla on Tue 25/11/2003 02:53:44
Thats good to know CJ.

Scorp, your idea could work. So in the meantime I will use your method of doing it.

Just going to have to apply it to many characters. Oh well. Art takes time.

Thanks again for all your replies. Seems lately I have been asking for a lot of help. Thanks all for your time.

JD
Title: Re:SetCharacterScaling
Post by: deltamatrix on Tue 25/11/2003 13:15:02
*Forget what this post originally said*
Title: Re:SetCharacterScaling
Post by: SSH on Tue 25/11/2003 13:21:41
Quote from: deltamatrix on Tue 25/11/2003 13:15:02
Won't a SetCharacterScaling command be very hard to make? It seems that way 2me.

Shhh! don't try and put him off doing it!  >:(  ::)
Title: Re:SetCharacterScaling
Post by: deltamatrix on Thu 27/11/2003 10:50:40
Oops Sorry!