Fuffles Posted January 16, 2018 Share Posted January 16, 2018 (edited) This is something that had been on my mind for quite a while.. How would one make a mega inventoryimages file like klei did? My recent try was a failure, even tho its right according to how it works... its a 128x128 And then again, how would one call the Element for the inventory item from that atlas file? Quote <Atlas> <Texture filename="sota_inventory.tex" /> <Elements> <Element name="itemone.tex" u1="0" u2="0.5" v1="0.0" v2="0.5" /> <Element name="placeholder.tex" u1="0.5" u2="1" v1="0.0" v2="0.5"> </Elements> </Atlas> Edited January 16, 2018 by FuffledBeeQueen Link to comment Share on other sites More sharing options...
JohnWatson Posted January 16, 2018 Share Posted January 16, 2018 inst.components.inventoryitem.atlasname = "images/inventory/sota_inventory.xml" inst.components.inventoryitem:ChangeImageName("itemone") inst.components.inventoryitem:ChangeImageName("placeholder") also, stop hanging out with razel Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now