Is it possible to develop a card game with gamesalad?y
behindthelight
Member Posts: 9
I mean, if you tried to develop a card game, is there a way to put in some logic or code to determine what cards have been played and so forth?
Comments
But it would be so much easier with arrays, which GS does not have at the moment.
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
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 don't need to random 52 attributes
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.