How do i link buttons

I want to make it to when I press the play button the character starts running, all I know is to change the scene, but I want him to run on the first scene, so how do I link the play button to the character starting to run.

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer

    The way actors communicate in GameSalad is through game attributes (called "global variables" in programming languages). If you have one actor (the play button) change the value of a game attribute such as changing game.startRunning (a boolean) to true, then have a rule in the other actor (the runner) that If attribute game.startRunning is true... start running (that might be a Move behavior, etc.).

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

Answers

Sign In or Register to comment.