chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.47k stars 469 forks source link

Sprite - Canvas Size: "Width" and "Height" properties increment at different intervals #1397

Open HeyItsLollie opened 4 months ago

HeyItsLollie commented 4 months ago

2024-05-04 - 20-19-42

I expected the "Width" and "Height" properties here to increment at 8px intervals. Instead, "Width" increments at 16px intervals, while "Height" increments at 8px intervals.

This seems very weird, especially considering that GB Studio uses 8x16 sprite tiles. At the very least, I feel it makes sense to be able to have a sprite as small as a single tile.

Version: GB Studio 3.2.1, Win 11.

chrismaltby commented 3 months ago

Hi @HeyItsLollie that's a good point, I've updated the sprite editor to allow 8px canvas width increments with a min canvas width of 8px in https://github.com/chrismaltby/gb-studio/commit/862a92b007b6505f99d9f29d763a3afe943f81fa seems to work nicely so this will be in the next v4 beta

IRIS-Kane commented 3 months ago

I'm mid-development, got annoyed at not being able to have a 56px wide canvas and googled this issue. I find this issue only 4 hours after @chrismaltby commented on fixing it. What are the chances of that!

HeyItsLollie commented 3 months ago

Oh, thank you for looking at this!

Ironically, I ended up learning (via the GBS Discord) that sprite canvas size doesn't have much bearing on how sprites function (as it all comes down to sprite tiles), and that the canvas is really more of a guide. 😅 Still though, it will feel nice to have these controls function more predictably, so I really appreciate it.