4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.

Home Page:https://gdevelop.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proportional scaling in IDE

Bouh opened this issue · 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

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.

commented

Object instances are resized by the InstancesResizer class:

export default class InstancesResizer {

The shift key is checked by shouldResizeProportionally:

const proportional =
forceProportional || this.keyboardShortcuts.shouldResizeProportionally();
this.instancesResizer.resizeBy(
selectedInstances,
sceneDeltaX,
sceneDeltaY,
grabbingLocation,
proportional,
this.keyboardShortcuts.shouldNotSnapToGrid()
);

But, personally, I think this issue may not really a "good 1st issue" as the scene editor is a bit hard to grasp.

commented

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

Presently with Shift in GDevelop:
ss