I am trying to make a Blackjack game, and I need a way for the game to know if either the player or the dealer has a higher card value. How would I make a condition for if the Player Variable value is greater than, equal to, or less than the Dealer Variable value?
Hi,
go to: Other conditions → Advanced → Events and control flow → Compare two numbers.
I tried that, but my game still doesn’t work.
Can you screen shot what you’ve done?
1 Like
Here is my code (AnimationNumber=Player and AnimationNumberAlt=Dealer)
What happens is every time it runs the code for when the Player=Dealer, even if thats not the case.
And what are the conditions or events for this? Can you screen shot those too?
There is no need for compare two numbers here
Simply variable value condition is enough
But now what you should do and you most likely did not
Is print both variables to text object and see what are they actual values
1 Like
Thank You, that worked!
1 Like