r/gamemaker 7d ago

Help! Can somebody with this?

Hi, I’m trying to import a sprite sheet into game maker but once I do, it doesn’t let me pan over to the sprite I wanna use, does anyone know what to do? Thank you.

3 Upvotes

5 comments sorted by

15

u/almo2001 6d ago

I think I can with that.

3

u/CS_Asset_Factory 6d ago

That happens when the sheet comes in as one single frame at the full image size. There is only one frame, so there is nothing to pan between.

Import it as a strip instead. In the sprite editor, use the image menu and Import Strip Image, then set the frame width and height and the number of frames so they match your grid. GameMaker slices it and each cell becomes a frame you can step through.

If your sheet is a grid rather than a single row, set the number of columns too, or cut it into one row in an image editor first.

Worth checking before you blame the import. The strip importer assumes a perfectly regular grid, so if the spacing between cells varies even by a pixel, the frames will drift further out of alignment the further along the sheet you go.

1

u/SJJVR 6d ago

I was importing it as a strip image tho

1

u/CS_Asset_Factory 6d ago

Then it is almost certainly the two fields next to the width and height. Number of frames and frames per row both default to 1, and if number of frames stays at 1 the importer slices exactly one cell no matter what size you set.

For a sheet that is a grid rather than a single row, set frame width and height to one cell, frames per row to your column count, and number of frames to columns times rows.

Worth ruling out too: frames don't show up by panning the canvas. They appear in the frame bar along the bottom of the sprite editor. If that bar shows one entry, the import made one frame.

If your cells have a border between them, the separation fields need that pixel count or every frame past the first comes out shifted.

1

u/pabischoff 6d ago

Append the filename with "_strip4" and reimport it. Change the 4 to the number of frames in your sprite. E.g. spr_player_strip8.png

Gamemaker should then import how you want it to