Button Problem
tahlia.kwan@sydstu.catholic.edu.au
Member Posts: 9
In main menu I have four buttons - Start, instructions/how to, credits, and quit. When I add the change scene behaviour for start to lead to the first level, it works, but when I press the other three buttons, they also lead to level one rather than the scenes I wanted it to lead to.
Comments
In the Change Scene Behavior there is a pull down menu to choose which scene to jump too, make sure the correct scene is picked for each button. Sounds like you have them all jumping to 'next scene'.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
The behaviour i chose was 'change scene' and put the right scene into it but it still leads to level one regardless of the button i click
Weird, can you post images of the four change scene behaviors/rule sets for review?
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
It's possible you have something on your other scenes that is changing to the first scene. Add a log debugging statement to an actor in each scene and see if the statements show up in the Debugger window.
Also, delete and re-add the actors to the scene and preview again. It may be a prototype/instance issue.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here are three of my buttons, they all have the similar set up, they all are set up to go to the scenes that they are allocated to:
https://dropbox.com/s/9q862q5xlutueik/Button%20Rule%20SMode.PNG?dl=0
https://www.dropbox.com/s/5l4521jirgft238/Play Button Rule.PNG?dl=0
https://www.dropbox.com/s/m6s2c2whxphphm0/Settings Button Rule.PNG?dl=0
@tahlia.kwan@sydstu.catholic.edu.au Instead of mouse is down, try when touch is pressed. Also, your chemistry lab rule may be conflicting with your next scene rule because both fire "when mouse is down."
Mathtap.com (Android) | Fridgemanager.com (Android) | Breakoutofspace.com (Android)
@Summation is right. When Mouse is Down means whenever the scene is clicked ANYWHERE. You need to change all of your button rules to When Touch is Pressed, which means that the ACTOR is clicked.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User