APROP_ScaleX/APROP_ScaleY and A_SetScale
Moderator: GZDoom Developers
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49238
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
I decided to add this patch despite my reservations because it's apparently in high demand.
- Marisa the Magician
- Banned User
- Posts: 3886
- Joined: Fri Feb 08, 2008 9:15 am
- Preferred Pronouns: She/Her
- Operating System Version (Optional): (btw I use) Arch
- Graphics Processor: nVidia with Vulkan support
- Location: Vigo, Galicia
- Contact:
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
I'LL LOVE YOU FOREVER FOR THIS.Graf Zahl wrote:I decided to add this patch despite my reservations because it's apparently in high demand.

- .+:icytux:+.
- Posts: 2661
- Joined: Thu May 17, 2007 1:53 am
- Location: Finland
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
Note that the [wiki]ACS actor properties[/wiki] for this feature will only work with [wiki]CheckActorProperty[/wiki] in GZDoom, not in ZDoom. Granted, people are more likely to use [wiki]GetActorProperty[/wiki] for it, since Check... is mostly useful for strings and you can do the comparison yourself for ints and bools. But I figured I'd mention this anyway.
- Tormentor667
- Posts: 13556
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
Is the usage already described somewhere in the wiki?
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
[wiki=SetActorProperty]Quite[/wiki] [wiki=A_SetScale]obviously[/wiki].
I find it highly amusing that you would spend the time to write a post and ask rather than just typing "A_SetScale" into the wiki and getting an answer instantly without having to wait for someone to tell you.
I find it highly amusing that you would spend the time to write a post and ask rather than just typing "A_SetScale" into the wiki and getting an answer instantly without having to wait for someone to tell you.
-
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
Can there be something like A_ScaleUp and A_ScaleDown that work in a similar fashion as A_FadeIn and A_FadeOut? Or is it too much of trouble to do?
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
This should work just as well:
Code: Select all
A_SetScale (ScaleX + 0.1, ScaleY + 0.1)
-
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
Thanks alot, NeuralStunner. I didn't know that you can do mathematical operations in there. But what do ScaleX and ScaleY represent here?
- InsanityBringer
- Posts: 3392
- Joined: Thu Jul 05, 2007 4:53 pm
- Location: opening the forbidden box
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
The object's current Scale on either the x or y axis.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: APROP_ScaleX/APROP_ScaleY and A_SetScale
Those are just 2 of the many [wiki=DECORATE_expressions]decorate expressions[/wiki], which are extremely useful. 
