• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows [GM2] How to convert frames into individual sprites.

A

aristhemage

Guest
Hi! I have a tile set, and I have converted it all into frames using the convert to frames thing, but I would like to take every frame and make them all separated, I could do image_index = x but I fear that it will lag the game, so what is the best thing to do?

Edit: I'd prefer to make it so I could convert them all into sprites so I can construct rooms easier
 
Last edited by a moderator:

Felbar

Member
all your sprites are compiled into texture pages by the engine regardless if you add them one at a time or not
search texture pages and texture groups in the docs
if you goto Game Options->Platform Settings->Windows->Graphics there is a preview button next to the Texture page size selector
that will actually output your texture page so you can see how they are being packed by the engine, you can control this somewhat with texture groups
so your sprites will all end up packed on one internal big sprite anyway, using image_index just moves the UV's on the texture page to the area your image is
TLDR yoyo is smarter than that and images are highly optimized, drawing is batched etc.
 
Last edited:
Top