GM:S 1.4 Replacing a sprite on a texture page

Discussion in 'Programming' started by Prometheus1998_, May 30, 2019.

  1. Prometheus1998_

    Prometheus1998_ Member

    Aug 26, 2018
    I'm working on a dungeon crawl-esque game, and I'd like to allow users to create entirely new content for it. To do that effectively, they need to be able to import sprites for their new items, enemies, terrain, et cetera. Terrain, though, poses a problem, since I'm using a primitive to render it all as one "object" to save on GPU cycles: Anything new cannot be rendered in the same chunk as anything from a different content package, be it the base game or another mod, since they would occupy different texture pages.

    Is there any way to replace an existing image on a texture page with a new one? That would allow me to "reserve" large amounts of the texture page for new images by creating blank squares, and the game would swap those blank spots out with user-created content while loading.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice