• 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!

Loading sprites from Included files

F

Fattyshow

Guest
So I made this card game. The images of the cards are in one sprite with 54 (52 cards + 2 jokers) subimages.
The back of the card is a different sprite.

So I want to make the images easily customizable.
I've managed to put the card back as an included file and I used the drag & drop feature to replace the existing sprite with the file. This way the person using the program can easily change the image.

Now I want to do this as well with the fronts of the cards.

Like the game folder has a folder that contains all the images used in the game.
Then people can easily replace them with their own images.
Or have them in one texture sheet.

My question is: How do I load subimages from an image(s) included in 'Additional Files'

Thanks in advance.


My english ain't perfect, I might be terrible at explaining things.
 
F

Fattyshow

Guest
Got it to work with sprite_replace, I didn't know the second number was the amount of sprites it had to cut it into.

Thanks for the help.
 
Top