APROP_ScaleX/APROP_ScaleY and A_SetScale

Moderator: GZDoom Developers

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: APROP_ScaleX/APROP_ScaleY and A_SetScale

Post by Graf Zahl »

I decided to add this patch despite my reservations because it's apparently in high demand.
User avatar
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

Post by Marisa the Magician »

Graf Zahl wrote:I decided to add this patch despite my reservations because it's apparently in high demand.
I'LL LOVE YOU FOREVER FOR THIS. :shock:
User avatar
.+:icytux:+.
Posts: 2661
Joined: Thu May 17, 2007 1:53 am
Location: Finland

Re: APROP_ScaleX/APROP_ScaleY and A_SetScale

Post by .+:icytux:+. »

:wub: <3
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: APROP_ScaleX/APROP_ScaleY and A_SetScale

Post by Gez »

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.
User avatar
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

Post by Tormentor667 »

Is the usage already described somewhere in the wiki?
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Re: APROP_ScaleX/APROP_ScaleY and A_SetScale

Post by Kate »

[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.
Blue Shadow
Posts: 5046
Joined: Sun Nov 14, 2010 12:59 am

Re: APROP_ScaleX/APROP_ScaleY and A_SetScale

Post by Blue Shadow »

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?
User avatar
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

Post by NeuralStunner »

This should work just as well:

Code: Select all

A_SetScale (ScaleX + 0.1, ScaleY + 0.1)
Blue Shadow
Posts: 5046
Joined: Sun Nov 14, 2010 12:59 am

Re: APROP_ScaleX/APROP_ScaleY and A_SetScale

Post by Blue Shadow »

Thanks alot, NeuralStunner. I didn't know that you can do mathematical operations in there. But what do ScaleX and ScaleY represent here?
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: APROP_ScaleX/APROP_ScaleY and A_SetScale

Post by InsanityBringer »

The object's current Scale on either the x or y axis.
User avatar
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

Post by NeuralStunner »

Those are just 2 of the many [wiki=DECORATE_expressions]decorate expressions[/wiki], which are extremely useful. :)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”