• 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!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code sprite_add()

S

Shadowblitz16

Guest
just two quick questions
- does the GMS2 version of sprite_add() take in account existing texture pages or does it still create a new texture pages like GMS1 did?

- if not does yoyo games plan on making it use existing texture pages? maybe with sprite_add_ext()
 

Lukan

Gay Wizard Freak
I'm guessing since the manual says
NOTE: When you load a sprite into GameMaker Studio 2 you must remember to remove it again (with sprite_delete) when no longer needed, otherwise there is risk of a memory leak which will slow down and eventually crash your game.​
That they still have their own pages.
 
S

Shadowblitz16

Guest
then hopefully yoyo game devs can implement an alternate method that adds them to a texture page
or the alternative could be making sprites themselves texture pages with multiple animations kinda like a tileset

Edit: it could be possible to make the texture pages only the size of the sprite that way your not creating a whole 2048x2048 sized texture page per sprite.
 
Last edited by a moderator:
Top