How do i link buttons
Phoenix256
Member Posts: 42
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.).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
Here is one way of doing it:
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@jamie_c has some awesome tutorials.
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
Thanks helps.... I think
@Summation, thanks for the plug! I'm glad they are helpful
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page