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
-
tatiang Posts: 11,949
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.).
Answers
Here is one way of doing it:
@jamie_c has some awesome tutorials.
Thanks helps.... I think
@Summation, thanks for the plug! I'm glad they are helpful