C
c3pu
Guest
In gms1 there was an option to trim sprites automatically. Is this no longer doable or am i just not seeing the option?
the option im talking about would automatically trim the canvas to its smallest possible size without cropping any pixels.@c3pu In the sprite window you can click on the icon in the Size: section and do a resize of the canvas there. That seems to affect all the images in the sprite.
View attachment 5031 View attachment 5032
that's good to knowI will say however, GameMaker Studio 1.x and 2 have always auto-cropped on export, so you're not wasting anyspace if you don't trim
Glad to hear that. That old "auto-crop" feature was especially useful with animated sprites, where each frame might have a different image size. It would automatically adjust the crop size to account for the frame with the largest image.This is something that has been requested and we'll look to add back in. Currently you can select an area then select "Crop all frames to selection".
Thats why i used it as well, fortunate i just found out that aseprite has the feature as well but i have to think of it before exporting.Glad to hear that. That old "auto-crop" feature was especially useful with animated sprites, where each frame might have a different image size. It would automatically adjust the crop size to account for the frame with the largest image.
Of course, the "crop to selection" does the same thing. But the user has to find the largest frame himself, and then position the selection box perfectly. So I miss that old feature.
Just to be sure i got this right if two different sprite have identical frame in them they will only appear once on the tpage?What's more, if you got exactly 100% identical sprite frames in different sprites, they were exported as one for texture pages (not sure, probably checksum is made on each sprite frames). In GM:S 1.x that may be helpful, as you can have same sprite and background, and have them as one sprite on texture atlas page (but they always need to be 100% pixel identical).
very good pointJust wanted to add that when trying to select assets in the room editor, the sprites with extra empty space get accidentally selected. This is also another reason why the pixel perfect image crop feature was extremely useful. Found this out just now when building levels with multiple clustered assets in one layer near each other, having trouble selecting the right one.
hahaha i did that to the first few days.I'm literally importing sprites to 1.4 blank project right now just to use the crop tool lol
know any standalone auto cropping tools out there?
But theres a crop to selection in GMS2.....?!?!?I'm literally importing sprites to 1.4 blank project right now just to use the crop tool lol
EDIT: before I remembered that I can just import sprites to photoshop and crop image to selection -_-
Cropping to selection is a lot more cumbersome than cropping to the box of the sprite that's actually used.But theres a crop to selection in GMS2.....?!?!?
On top of this, you can make a selection, flip through the frames, using CTRL add to the selection if you need to - then crop to it.
What @Alex@ said. In 1.4, it's as quick as pressing ctrl+shift+P, leaving the crop value at 0 and pressing enter and it will auto-crop all the frames of the sprite to pixel perfect precision.But theres a crop to selection in GMS2.....?!?!?
On top of this, you can make a selection, flip through the frames, using CTRL add to the selection if you need to - then crop to it.
Can't you record an Action for that? Then it's just Import > Run action > Done!PS: I just realized how to crop images faster.
in Photoshop you are able to define multiple shortcuts to the same function without overwriting default ones.
So I defined 3 additional shortcuts
F1 - Invert Selection
F2 - Crop Selection
F3 - Save Image
Perhaps. Only issue is that a part of the process is to use a wand and click on empty space and it's not guaranteed that all the sprites will have emptiness in the same spot. Maybe if I used "select by color" instead of the wand and set it to select alpha, it might just do.Can't you record an Action for that? Then it's just Import > Run action > Done!
GMS2.0 was programmed from scratch (with a few exceptions of core mechanics). It's not that they removed features, it's that they haven't programmed them in yet. We are still in Beta after all.Why were basic features removed from the sprite editor, anyway? You guys already them in 1.x, haha! X'D
Their answers seem to indicate that certain features won't make it back in. I'd call those "removed," no matter what the technical reason is. And from what Yoyo staff have said on these forums since the beta launch, it seems to me that GMS2 isn't a complete rewrite, although I could be wrong on that. Pretty sure Mike has blamed the old code base for problems that have carried over to GMS2.GMS2.0 was programmed from scratch (with a few exceptions of core mechanics). It's not that they removed features, it's that they haven't programmed them in yet. We are still in Beta after all.
Perhaps look and see if you can find it first? check the release notes? While the online manual isn't always right up to date, the built in one should be, and it's listed in there.Basically, please do not give excuses or another reason/method to go away around the whole main topic stating this is beta or alpha as game maker 2 is already more than a year in the market.
Trim has been in there since 2.0.6 via the image menu. You say I'd stated this in April 2016, GMS2 wasn't even out then. It was a comment from the beta in December It was added in May, not long after public release - where we obviously had lots of things to fix before releasing first.
Perhaps look and see if you can find it first? check the release notes? While the online manual isn't always right up to date, the built in one should be, and it's listed in there.
From the releases notes:
Version 2.0.6.146 Download
Tue, 16 May 2017 16:39:27 Z
This is mainly a bug-fix release, with lots and lots of issues resolved across the entire product. However, we have also added Pinch and Rotate gesture events and the first few image editor tools: Trim, Reverse Frames, and Colour Remove.
Where to find it.
View attachment 12728