How do I change card graphic?
Posted: Mon May 26, 2014 7:59 pm
Hey all,
So ive been busy porting over a game I made in c programming to Lua and it has even made more progress than that version. However, I have hit a wall this time. Its such a simple thing, I want to change the card graphic from blue to red if the player card beats another. If the enemy beats a player card change graphic from red version to blue.
Im not sure what is going on but I just know its not working right for me. I could be going at this completely wrong, I just don't know. Im posting the love file as this game is only for practice. Its a clone of the minigame found in FFVIII - Triple Triad.
Any help would be greatly appreciated, so I can continue to learn Lua and Love2d.
updateCardImage is the function to look at.
So ive been busy porting over a game I made in c programming to Lua and it has even made more progress than that version. However, I have hit a wall this time. Its such a simple thing, I want to change the card graphic from blue to red if the player card beats another. If the enemy beats a player card change graphic from red version to blue.
Im not sure what is going on but I just know its not working right for me. I could be going at this completely wrong, I just don't know. Im posting the love file as this game is only for practice. Its a clone of the minigame found in FFVIII - Triple Triad.
Any help would be greatly appreciated, so I can continue to learn Lua and Love2d.
updateCardImage is the function to look at.