Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New scripts: ImportGraphicsAdvanced.csx, ExportSpritesAsGIF.csx (CE) #2067

Merged
merged 5 commits into from
Mar 21, 2025

Conversation

CST1229
Copy link
Contributor

@CST1229 CST1229 commented Mar 21, 2025

Resolves #1204 (gif export, no strip export)

Description

More backports from [you know the drill].

  • ImportGraphicsWithParametersPlus.csx is basically ImportGraphics but it can import GIFs, strips, single image files and set sprite origins and animation speeds.
  • ExportSpritesAsGIF.csx does exactly what it says on the tin. It uses the animation speed set in the IDE for GMS2 games. Thanks ImageMagick!

UTMTCE adds a few other scripts but those were fully made by other people so I don't want to include them here, and especially GIF sprite support is a pretty requested feature.

Caveats

  • ImportGraphicsWithParametersPlus only allows you to set the properties for all sprites at once, not individually. It also doesn't let you set specific offsets, only the corners/edges/center.
  • ExportSpritesAsGIF defaults to a fixed 30fps for GMS1 games, and that might need to be changed? (if we want the user to be able to set the framerate, for instance)

Notes

ImportGraphicsWithParametersPlus could probably replace ImportGraphics entirely, though I didn't because it adds the extra dialog to set the sprite properties. (I'd be 100% down to have it replace ImportGraphics though, if that's not an issue)

I'm on a UTMTCE merging spree lol. At this point it has like, only 2 unique features left that could be merged into UTMT. Here's the total diff, though it's a bit messy due to random other changes scattered around.

….csx

More ports from you-know-the-drill.
UTMTCE adds a few other scripts but those were fully made by other people so I don't want to include them here, and especially GIF sprite support is a pretty requested feature.
Copy link

github-actions bot commented Mar 21, 2025

@CST1229 CST1229 changed the title New scripts: ImportGraphicsWithParametersPlus.csx, ExportSpritesAsGIF.csx (CE) New scripts: ImportGraphicsAdvanced.csx, ExportSpritesAsGIF.csx (CE) Mar 21, 2025
Copy link
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed the changes to finalize on this over Discord (now completed), so this looks good to me now!

@colinator27 colinator27 merged commit b0f7ab5 into UnderminersTeam:master Mar 21, 2025
5 checks passed
@CST1229 CST1229 deleted the more-graphics-scripts branch April 10, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export sprites as gif
2 participants