Hi,
I have a game consisting out of two types of cards, so I defined them as separate tables and they both use a different image source (one has 14 images per row, the other only 11 images per row). On the JS side I have created two stock elements, load the cards and visually present them on the screen as two separate sets.
During the game however, the cards of one set allow you to acquire cards of the other set, so I would like to migrate cards from one stock to the other. I did this with set1.addToStockWithId and set2.removeFromStockById, and I can see a card shift in, but visually the added card uses the image of set1 instead of set2.
Is there a way to make sure it remains using the correct image, or do I need a different setup so they either use the same image?
I'm experimenting with zones as we speak, so maybe that will help, but would appreciate any input as this is my first game.
Thanks a lot!
I have a game consisting out of two types of cards, so I defined them as separate tables and they both use a different image source (one has 14 images per row, the other only 11 images per row). On the JS side I have created two stock elements, load the cards and visually present them on the screen as two separate sets.
During the game however, the cards of one set allow you to acquire cards of the other set, so I would like to migrate cards from one stock to the other. I did this with set1.addToStockWithId and set2.removeFromStockById, and I can see a card shift in, but visually the added card uses the image of set1 instead of set2.
Is there a way to make sure it remains using the correct image, or do I need a different setup so they either use the same image?
I'm experimenting with zones as we speak, so maybe that will help, but would appreciate any input as this is my first game.
Thanks a lot!