Hello bge community, this is my first post in a forum, hopefully i’m doing everything right.
So basically i was wondering if anyone knows or have an idea of how to change a texture image source and save it untill it gets changed again. kinda like in Call of Duty with gun camo or in older Need for Speed car vinals (that are not editable).
thank you for any help.
I’m not looking to create a texture to save, i already have the textures needed. I simply want to save which texture is default after selecting it, so when the game is open up again it remains on the last chosen texture.
Sorry, but thx for the help
What you will do is save a reference to the texture. So if it’s something like a color for camo, you can save the RGB components (using python’s file API, pickle or any number of other options).
If it’s which image is being used, save the file name and write something to load it.
really interesting. i thought you were sending me somewhere to make a texture(in game), but i’m not too experienced to understand it, if you have a sample script by any chance that would be much appreciated. if not its ok, i’ll eventually figure it out. thx allot for pointing me in the right direction.