Button click rules not working

jlbrown9jlbrown9 Member Posts: 18
edited December 2014 in Working with GS (Mac)

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

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited December 2014

    @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

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited December 2014
    When touch is pressed
    Change Attribute Score to Score+1
    

    You've something like that? Does that help? :wink:

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • GnarlyGnarly canadaMember Posts: 840

    You need to add an attribute "score" it's type select integer.

    Then rule
    When touch is pressed score is score + 1.

  • jlbrown9jlbrown9 Member Posts: 18

    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.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    /changed thread title

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • jlbrown9jlbrown9 Member Posts: 18

    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.

  • j75j75 Member, PRO Posts: 235

    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.

  • jlbrown9jlbrown9 Member Posts: 18
    edited December 2014

    Removed Comment

  • jlbrown9jlbrown9 Member Posts: 18
    edited December 2014

    @‌jesse75 Thanks man! It was because I was editing the actor on the left, not on screen! Finished my click the button game. Cheers!

Sign In or Register to comment.