I also can confirm that you definitely can, because I have one in middle development (but I suspect it will stay there).
I arrived at the point to have assigned the cards to the players, avoiding repetitions also for every future round. It's also ready to mix the remaining cards (the ones not assigned to players) again.
Feel free to ask how to achieve that (if I can understand back in my project) because there are LOADS of problems to solve.
I tried this way, but it was difficult to trace the already used cards for the rounds to come. Sebmacfly is genius, so he will have invented his own way. As of me, I did 52 attributes, and in the loading screen I assign a value from 1 to 52 to all of them without repetitions (I did it with a physics bruteforce machine because I like thinking visual). This value represents the card.
Card1: 31 Card2: 4 And so on...
So basically it's like having the mixed cards ready to pick on the table.
When a card is used, I reset It's value to zero, so when It's time to pick, you can even make a rule to pick a variable amount of cards, checking from the first that is different from 0.
frario said: I tried this way, but it was difficult to trace the already used cards for the rounds to come. Sebmacfly is genius, so he will have invented his own way. As of me, I did 52 attributes, and in the loading screen I assign a value from 1 to 52 to all of them without repetitions (I did it with a physics bruteforce machine because I like thinking visual). This value represents the card.
Card1: 31 Card2: 4 And so on...
So basically it's like having the mixed cards ready to pick on the table.
When a card is used, I reset It's value to zero, so when It's time to pick, you can even make a rule to pick a variable amount of cards, checking from the first that is different from 0.
Hope this can be clear enough
Yeah, great, some card games need rules like yours...
But with my poker game, the only thing i do is randoming 9 attributes from 1 to 52 (for player cards and flop, turn river) after that, random again don't need to random 52 attributes
@behindthelight: i forgot to say that because of a limitation in gamesalad, you can't do math in variables name so you will have to make a couple of very long if/otherwise to check all the 52 cards. hopefully you'll figure out how to make it only once or two, because after that gamesalad will explode.
Comments
But it would be so much easier with arrays, which GS does not have at the moment.
QS
Thanks.
http://itunes.apple.com/us/app/angry-heads-up-poker-hd/id407952557?mt=8
Nice job.
How do you keep track of the cards?
I arrived at the point to have assigned the cards to the players, avoiding repetitions also for every future round. It's also ready to mix the remaining cards (the ones not assigned to players) again.
Feel free to ask how to achieve that (if I can understand back in my project) because there are LOADS of problems to solve.
So yes, sebmacfly must be a sort of genius
yeah, I'm not really sure how to keep track of the cards.
interested to know how you did it?
I'm saving the cards in attributes (card1player1, card2player1, card1player2, card2player2, flop1, flop2, flop3, turn, river)
Thanks guys
Sebmacfly is genius, so he will have invented his own way.
As of me, I did 52 attributes, and in the loading screen I assign a value from 1 to 52 to all of them without repetitions (I did it with a physics bruteforce machine because I like thinking visual). This value represents the card.
Card1: 31
Card2: 4
And so on...
So basically it's like having the mixed cards ready to pick on the table.
When a card is used, I reset It's value to zero, so when It's time to pick, you can even make a rule to pick a variable amount of cards, checking from the first that is different from 0.
Hope this can be clear enough
But with my poker game, the only thing i do is randoming 9 attributes from 1 to 52 (for player cards and flop, turn river) after that, random again
Seb, that heads up game you made looks incredible.
Thanks again.
@behindthelight: i forgot to say that because of a limitation in gamesalad, you can't do math in variables name so you will have to make a couple of very long if/otherwise to check all the 52 cards. hopefully you'll figure out how to make it only once or two, because after that gamesalad will explode.