The Main problem that i had in this project was the hovering effect on the playing cards themselves which was mainly because of the way i was approaching it were i was trying to make the card us a button that on hover entry it would make the card move to the side to display the actual card moving itself but this worked in the sense that it was moving but not as intended. What happened is the card would glitch out and start moving between were i wanted and the origin and from this it because more annoying and i tried another approach that involved animations but they would start to glitch and start not to play. Another thing was making a mini other card setup just to have one on the pause that was bigger and one on the game took a minute mainly because of the hud's and trying not to overlay the mini cards with the big cards.
From that me and my group mate were looking of ways to make the card look like it moves when you hover over it so what we did is in code when implemented function that would move the card between the point we wanted and the origin using lerp this caused it to make a nice smooth motion moving the card when hovering and with some checks making it so it would keep and nice motion and not take forever on the move the card finally and also with the mini cards i did some checks to make sure the menus were not popping up and the cards while appear when not in menu.
Anthony perez
03/28/24
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.