Hello programmers!
I have a cribbage card game programmed and I want to have cards move from one place to another as in dealing the cards to players' hands. I can't figure out how I would go around doing this. My first guess was to have a function that would move the card along a straight line (from the inital point to the final point) and have it displayed a certain intervals so it seems like it's moving. However, this seems a bit innefficient and I was wondering if anyone here knew of a better way to animate the cards going from one place to another. Any feedback would be nice as I am still a beginner programmer. Thanks a lot!
I have a cribbage card game programmed and I want to have cards move from one place to another as in dealing the cards to players' hands. I can't figure out how I would go around doing this. My first guess was to have a function that would move the card along a straight line (from the inital point to the final point) and have it displayed a certain intervals so it seems like it's moving. However, this seems a bit innefficient and I was wondering if anyone here knew of a better way to animate the cards going from one place to another. Any feedback would be nice as I am still a beginner programmer. Thanks a lot!