Is it possible to develop a card game with gamesalad?y

behindthelightbehindthelight Member Posts: 9
edited November -1 in Working with GS (Mac)
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

  • quantumsheepquantumsheep Member Posts: 8,188
    Yes - others have done it.

    But it would be so much easier with arrays, which GS does not have at the moment.

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • behindthelightbehindthelight Member Posts: 9
    So, there is a way to do it in GS without using arrays? I haven't used GS enough to figure out how. Do you know of any examples/tutorials out there?

    Thanks.
  • behindthelightbehindthelight Member Posts: 9
    Thanks for the input, I guess I will wait before I attempt it.
  • behindthelightbehindthelight Member Posts: 9
    Wow, that game is sick.....holy crap.

    Nice job.

    How do you keep track of the cards?
  • frariofrario Member Posts: 164
    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.

    So yes, sebmacfly must be a sort of genius ;)
  • behindthelightbehindthelight Member Posts: 9
    frario,

    yeah, I'm not really sure how to keep track of the cards.
    interested to know how you did it?
  • sebmacflysebmacfly Member Posts: 1,018
    @behindthelight:
    I'm saving the cards in attributes (card1player1, card2player1, card1player2, card2player2, flop1, flop2, flop3, turn, river)
    ;)

    Thanks guys
  • frariofrario Member Posts: 164
    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 :)
  • sebmacflysebmacfly Member Posts: 1,018
    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
  • behindthelightbehindthelight Member Posts: 9
    Yo Seb and Frario, that is some good info there. I am going to play around with that and see if I can get something going.

    Seb, that heads up game you made looks incredible.

    Thanks again.
  • frariofrario Member Posts: 164
    @ sebmac: you are right, stupid me

    @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.
Sign In or Register to comment.