GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Proportional scaling in IDE

Open Bouh opened this issue 1 year ago • 8 comments

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: ss

Expected with Alt (example from Figma): Animation

Bouh avatar Jan 08 '24 22:01 Bouh

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 !

al-humea avatar Feb 08 '24 11:02 al-humea

Hi @al-humea I think you can take it, no one has started to work on it yet.

Bouh avatar Feb 08 '24 11:02 Bouh

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.

D8H avatar Mar 01 '24 12:03 D8H

Actually, this feature already exists. You can use Shift to scale an instance proportionally.

D8H avatar Mar 01 '24 12:03 D8H

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): Animation

Presently with Shift in GDevelop: ss

Bouh avatar Mar 01 '24 13:03 Bouh

If no one is working on this I would like to give it a try.

sundhar010 avatar Apr 15 '24 06:04 sundhar010

Hi @sundhar010 ! Are you working on this or can my friend and I give it a go?

DavidMLPalma avatar Apr 26 '24 01:04 DavidMLPalma

Hi @sundhar010 ! Are you working on this or can my friend and I give it a go?

Sure

sundhar010 avatar Apr 26 '24 03:04 sundhar010