I've figured out how to play a card to the Table Top: //-=> Draw Card <=-
cardID = drawCard(cardDeck["id"]);
//-=> Got a Card <=-
//-=> Play the Card to the Table
let cardToPlay = playCardToTable(cardID, {
left:
tokenDeets.get("left") +
tokenDeets.get("width") / 2,
top:
tokenDeets.get("top") +
tokenDeets.get("height") / 2,
currentSide: 0,
width: 140,
height: 198,
}); I can't, for the life of me, figure out how to remove the card from the table top. From what I gather I need to use .remove(), but I no clue how to use that... I've tried things like: let dealtCard = getObj("card", cardID);
dealtCard.remove(); But when I try that I get TypeError: Cannot read property 'remove' of undefined I'm probably supposed to be a .get()...? Any help would be appreciated. :)