Button click rules not working
jlbrown9
Member Posts: 18
Hi.
Im fooling around with GameSalad, and trying to make different games, so I made a game where you just click the button as many times in 30 seconds. I am pretty sure I have everything correct.
The timer is working, the button is working, it's just the score doesn't go up.
Should I publish the game and someone can take a look at it?
Comments
@jlbrown9 Hi, If you re-title your thread something better than "Help?" someone just might.
Welcome to the Forums - there are Rules, one obvious one is to not title threads with just the word "Help". Everyone needs help. Imagine if every title of every thread is "Help".
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
You've something like that? Does that help?
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
You need to add an attribute "score" it's type select integer.
Then rule
When touch is pressed score is score + 1.
Okay gyroscope, I'll check the rules out.
And yes, I have EXACTLY that,
I have the integer attribute score,
and the button with create rule when pressed, score+1.
I've been fooling around with it for a while but nothing is working!!
Thanks.
/changed thread title
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I was going to do it myself, but I guess if I don't do it in a day, I can't edit it at all.
Best to post a picture of your rule so your question can be answered right off the bat.
As far as the rule goes, It should say, "if touch is pressed, change game.score to game.score+1" Then be sure that it you have the score attribute set as an integer and that your text display is set to game.score in the expression area. Also, be sure you are choosing the game.score expressions with your mouse and not typing them in. Also be sure that you are actually editing the actor on the scene and not the actor on the left that may not be linked to it.
Removed Comment
@jesse75 Thanks man! It was because I was editing the actor on the left, not on screen! Finished my click the button game. Cheers!