I am trying to make a Blackjack game and having trouble with the system for determining if a set of cards is above or below 21. I tried to make a variable that adds depending on the value (animation) of a card, however, when I look in the debugger, the value is significantly more than what it should be. The cards that were generated were a queen and a king, so the variable value should be 20, but the actualy value was 1760. Can someone help me?
Screenshot (77)|690x404
If you add 2
Then you add 2 each frame
Your game runs at 60 fps
SO in 1 seconds you added 2x60 so you added not 2 but 120 to your var
IN ONE SECOND
You need to add trigger once to your conditions
Thank you! That works!
1 Like