I have a slight problem that I'm struggling to resolve.
Say that in-game, I want to be able to take an event and make it have the correct image for one of a deck of cards. So if we had the 52 cards in a deck, I want the player to be able to choose a number (between 1 and 52) and have the event change to the sprite for that card.
What is the best way to accomplish this?
Ive thought of a few possible approaches, but I've ran into problems with each. The two main issues I'm having are...
1) It isn't possible for me to put 52 card images on one sprite sheet (as far as I'm aware?)
2) The "change image" option in the event editor only allows us to select a specific image, rather than the ability to specify the image by variable. I could have 52 "if" branches, but that doesn't seem particularly elegant.
Can anyone point me to a better way to do this?
Say that in-game, I want to be able to take an event and make it have the correct image for one of a deck of cards. So if we had the 52 cards in a deck, I want the player to be able to choose a number (between 1 and 52) and have the event change to the sprite for that card.
What is the best way to accomplish this?
Ive thought of a few possible approaches, but I've ran into problems with each. The two main issues I'm having are...
1) It isn't possible for me to put 52 card images on one sprite sheet (as far as I'm aware?)
2) The "change image" option in the event editor only allows us to select a specific image, rather than the ability to specify the image by variable. I could have 52 "if" branches, but that doesn't seem particularly elegant.
Can anyone point me to a better way to do this?