Jump to content


Photo

Compiled Image Texture


  • Please log in to reply
2 replies to this topic

#1 spiderhund

spiderhund

    GMC Member

  • New Member
  • 7 posts

Posted 05 March 2012 - 01:35 PM

Hello There.

I've just gotton my hands on GM:HTML5 and I've been tasked with recreating a java game in HTML5 for a company.
Now I've noticed that when compiling a game it creates one or more texture files containing all images/sprites/backgrounds used by the game.

This is not an optimal choice for my project so my question is if there is a way to prevent this and just have the game read a whole bunch of small image files instead?
  • 0

#2 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16791 posts
  • Version:GM:Studio

Posted 05 March 2012 - 08:33 PM

Yes, you can store all the resources in an external file and then have GM load them at run-time using the _add functions. Sprite_add, background_add, sound_add etc etc etc...
  • 0

#3 spiderhund

spiderhund

    GMC Member

  • New Member
  • 7 posts

Posted 06 March 2012 - 09:35 AM

Yes, you can store all the resources in an external file and then have GM load them at run-time using the _add functions. Sprite_add, background_add, sound_add etc etc etc...


Thanks alot!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users