-
-
Notifications
You must be signed in to change notification settings - Fork 226
Closed
Labels
Description
As simple as that - allow to flip entities, resizing them to negative sizes.
Could be useful, for example, in:
- Enabling to choose looking direction for entities. Usually must-have for platformers.
- Some resizeable objects may have their pivot just as important as their size. Being unable to scale them in opposite direction limits thing you can do with them.
The way it can be implemented:
Replace resize bool value with bitmask enum
enum
{
Disabled : 0
CanResize: 1
CanFlip : 2
}
With this, loading old bool as int value should preserve existing data.
CanFlip flag allows to have negative size for given axis.
If it's not resizeable - you can still flip entity left/right. I suggest making it as a single dragable dot on the current forward/down direction, the same way as you got 2 dots for resizeable entities.
Reactions are currently unavailable