Skip to content

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

Merged
colinator27 merged 5 commits intoUnderminersTeam:masterfrom
CST1229:more-graphics-scripts
Mar 21, 2025
Merged

New scripts: ImportGraphicsAdvanced.csx, ExportSpritesAsGIF.csx (CE)#2067
colinator27 merged 5 commits intoUnderminersTeam:masterfrom
CST1229:more-graphics-scripts

Conversation

@CST1229
Copy link
Copy Markdown
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.
@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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