One Bet At A Time

crapscraps Member Posts: 353
edited November -1 in Working with GS (Mac)
Almost done with my dice game. The current problem ( that I cant figure out ) is - i want the user to only be able to make a single bet of either $5,10,25,50 or 100. The betting system works - when a bet is chosen - the bet is subtracted from the bankroll - but if another denomination bet is "touched" it too subtracts from the bankroll.

I do not want that to happen. Only the first $$$ amount chosen should be subtracted from the bankroll not extra bets.

Comments

  • gazjmgazjm Member Posts: 578
    If you create an attribute called betplaced, and do the following it should work.

    Betplaced is 0
    Touch is pressed

    Then subtract the amount and change betplaced to 1.

    Then after the dice have rolled and you want the player to bet again, have a rule to change betplaced back to 0.
  • crapscraps Member Posts: 353
    Will Try - Thanks.

    I did my first performance tune-up

    Before: 46 fps / 34.5 MB Images / 58 Total MB

    1st Tune-up: 60 fps / 14.8 MB Images / 38 Total MB

    2nd Tune-up: 61 fps / 12 MB Images / 34 Total MB
  • AjBlueAjBlue Member Posts: 215
    nice tune up you've done. if you got any tips to share im more than interested
  • crapscraps Member Posts: 353
    With regards to game size:

    When at the GS home page that shows all the game scenes it says at the bottom right of the screen my project size is 5.8 MB.

    Is that the actual game size?
    When synced to my iPad it shows the following:

    Images - 12 MB
    Sounds - 112 Kb
    Game Engine - 6.4 MB
    Other - 16 MB
    Total - 34 MB

    The funny thing is - if I add up the total image sizes in the images section of GS - they only add up to 2.1 MB.

    What do I believe?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    what it shows at the bottom right of gamesalad is the game size, and the total mb in viewer is memory usage
  • crapscraps Member Posts: 353
    So am I okay with the numbers i am showing?
Sign In or Register to comment.