Scale and Margins Calculations Tool 1.0 2D Tools 4.6 Community
Submitted by user ParLaBas; MIT; 2026-05-08
A Basic Scale and Margin calculations tool for Godot.
1) Scale tool:
* "How much to scale by": Calculates the target scale based on original dimensions and the target minimum (or maximum) size in pixels for either width or height
* "What are the new dimensions of the sprite once scaled": Calculates the dimensions based on a given scale
2) Margin tool:
* "Where to put the item based on margins": Calculates where the (center of) the sprite should be, based on the margins/distance to a defined reference position and direction
(I put those two tools together because I personally need to use both at the same time for my own game).
View files Download Submit an issue Recent Edits