GDevelop
GDevelop copied to clipboard
Proportional scaling in IDE
Description
Its very common in IDE and drawing app, to use ALT + the handles on a sprite to rescale the sprite on both side at same time based on the center. While Shift is scalling on all side from the top left corner.
Here I'm requesting for the Alt use.
Presently with Shift in GDevelop:
Expected with Alt (example from Figma):
Hey 👋 Me and @blqis are students at the Paris 8 University (France) and we'd love to be assigned to this task as part of our "free software development" course !
Hi @al-humea I think you can take it, no one has started to work on it yet.
Object instances are resized by the InstancesResizer
class:
https://github.com/4ian/GDevelop/blob/7b70f9172fc673c85dc24afb120549759a3afe9a/newIDE/app/src/InstancesEditor/InstancesResizer.js#L52
The shift key is checked by shouldResizeProportionally
:
https://github.com/4ian/GDevelop/blob/7b70f9172fc673c85dc24afb120549759a3afe9a/newIDE/app/src/InstancesEditor/index.js#L969-L978
But, personally, I think this issue may not really a "good 1st issue" as the scene editor is a bit hard to grasp.
Actually, this feature already exists. You can use Shift to scale an instance proportionally.
Actually, this feature already exists. You can use Shift to scale an instance proportionally.
No, sorry, Shift doesn't do the same thing. Try more editors than GDevelop, Figma for example, or Photoshop. I'm talking about Alt use resizing on both side from the center, not Shift that resize proportionally from the origin point mostly on top left corner in GD.
Expected with Alt (example from Figma):
Presently with Shift in GDevelop:
If no one is working on this I would like to give it a try.
Hi @sundhar010 ! Are you working on this or can my friend and I give it a go?
Hi @sundhar010 ! Are you working on this or can my friend and I give it a go?
Sure