simple counting app
Gdogg
Member Posts: 95
Hi I am just a beginner and working on my first app, on the gamesalad win7 ver
hi, i am working on a counting app, which is pretty straight forward
tag low= a k " " " etc
tag high= 5 6" " "
tag neutral = 7 8 "
i need to set these accordingly and set scores when selected ie: lows =-1 highs= +1 and neutral = 0
I have created a integer called scores and added a -1 +1 to each of the numbers selected value to calculate.
hi, i am working on a counting app, which is pretty straight forward
tag low= a k " " " etc
tag high= 5 6" " "
tag neutral = 7 8 "
i need to set these accordingly and set scores when selected ie: lows =-1 highs= +1 and neutral = 0
I have created a integer called scores and added a -1 +1 to each of the numbers selected value to calculate.
Comments
Maybe you could make it a little clearer, try stick to standard terms, for instance use 'attribute' instead of 'integer' - and lines like this: ". . . added a -1 +1 to each of the numbers selected value to calculate . . ." are very confusing, it's difficult to work out quite what it means.
I have so far created all the numbers , so all i want is when i hit that particular card or number it would calculate accordingly either -1 or +1 or 0 and keep the score
cheers
https://dl.dropboxusercontent.com/u/9241215/BlackJack Card Counting.zip
And when you hit, change count attribute to count + that integer.
the structure works ok just the counting, i need a bit of help with. cheers
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
https://58.178.184.66/shares/U/GameSalad/2.png
https://58.178.184.66/shares/U/GameSalad/id687580.png
https://58.178.184.66/shares/U/GameSalad/3.png
https://58.178.184.66/shares/U/GameSalad/4.png
https://58.178.184.66/shares/U/GameSalad/5.png
https://58.178.184.66/shares/U/GameSalad/6.png
cheers
So you want to subtract one from the count when a high card is clicked/tapped, add one when a low card is clicked, and make no change when a neutral card is clicked?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
When game.high contains self.Name (or self.Image or however you are keeping track of the card value)
change attribute game.count to game.count-1
Otherwise
When game.low contains self.Name
change attribute game.count to game.count+1
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
the pressed rule in do?
https://58.178.184.66/shares/U/GameSalad/anotherpic.png