I am interested in writing strategy games...

fstltnafstltna Member Posts: 96
edited November -1 in Working with GS (Mac)
That use a dice (triple yachtzee) and cards (mille bournes). Does anyone have any examples in working with these features?

Marisa

Comments

  • ORBZORBZ Member Posts: 1,304
    card games are very hard to do with game salad because it does not support something called Arrays. Without arrays it's nearly impossible to track large quantities of things. So shuffling a card deck of 52 cards becomes a nightmare in GameSalad.

    What GameSalad is good at is things involving physics or touch.

    Having said that, anything is possible if you are creative enough. But I have been programing since the 80's before coming to GameSalad (I wanted a break from typing code by hand) and to do anything like cards is difficult in GameSalad.

    You can sum dice though because you don't need to shuffle them, just pick a random number between 1 and x and GameSalad will do that. But read up on the caviats on the randomization feature in GameSalad, it uses a psuedo-random number generator. But it DOES NOT GIVE THE DEVELOPER ANY WAY TO SEED THE ALGORITHM!! (i'm looking at you Gendai!) This has the unfortunate effect of causing the same sequence of numbers every time you run the randomization function. This can be fixed using some clever tricks, i refer you to t-shirtbooth's example for that one.

    Overall, the type of games you are describing are sort-of-possible, depending on exactly what you are trying to do. I suggest you read and watch some of the excellent tutorials put together here by the community. A very helpful bunch of folks :)
Sign In or Register to comment.