scaling issue #2724
Unanswered
cloudssky1997
asked this question in
Q&A
scaling issue
#2724
Replies: 2 comments
-
Unfortunately FlxSpriteGroups don't work very well with scale. We're planning to over haul this class for flixel 6 because it's very hacky. You'll need to reposition the buttons manually after scaling |
Beta Was this translation helpful? Give feedback.
0 replies
-
for each member you can multiply their x and y by the scale and update their hitbox too |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there. I was trying to perform simple UI animations in a FlxSpriteGroup that
consists of 2 buttons and a sprite using FlxTween. However I've been facing an issue
when i want to scale the FlxSpriteGroup by a factor of 0.5 using FlxTween. It seems like
the FlxSpriteGroup does not update it's hitbox nor position. Please check the below images:
before scaling:
after scaling using FlxTween:
How it's supposed to be:
Here is my code:
Is there any way i could fix this? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions