Problem with button triggering

BonepileGamesBonepileGames Member Posts: 194
edited May 2014 in Working with GS (Mac)

Hello to GS Community,

I have a problem with a button changing an attribute and its image once it is pressed. It works great on MAC and PC Gamesalad client but doesnt seem to work while testing with TestFlight.

The rules inside the button are:

IF TUTORIALON = 0

IF TOUCH IS PRESSED

DO

TIMER AFTER 0.5 SECONDS

CHANGE TUTORIALON TO 1

CHANGE IMAGE TO TUTON



IF TUTORIALON = 1

IF TOUCH IS PRESSED

DO

TIMER AFTER 0.5 SECONDS

CHANGE TUTORIALON TO 0

CHANGE IMAGE TO TUTOFF



However, it doesnt work while testing with TestFlight.



Any ideas or workaround?

Thank you

Comments

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

    How is it not working?

    Something I'd suggest is to (a) make sure Run to Completion is checked on both of your timers and (b) move the Change Attribute game.TutorialOn behaviors to the bottom of the rule lists so that they are after the change image behaviors. That way you don't run the risk of changing the rule "state" (from true to false) before the rule has completed.

    It's the same idea as this:

    If the light is on turn the light off read a book

    A better rule would be...

    If the light is on read a book turn the light off

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

Sign In or Register to comment.