Movable menu buttons will not return to original location
B1984
Member, PRO Posts: 91
Well this is frustrating. This simple menu idea was suppose to take half an hour total, and here I am three hours later stumped.
The menu starts with a single image with 5 buttons, each button you click tells another menu to move to the left and occupy the screen. Each new menu has a back button that moves with the menu and tells the new menu to go back to its original position.
It's so simple... there's nothing that I can see that's wrong.
-Player clicks menu button 1 which tells boolean 1 to become true which tells menu button 2 to move to new position.
-It does.
-Next, player clicks menu button 2 which is suppose to tell boolean 1 to become false and return menu button 2 back to its original position.
-It doesn't.
Then the bug chase begins...
I started with a change position attribute rule, then changed to a "move to" rule. I went from a boolean being true to a boolean being false, which actually worked to move them in the first place. I've rebuilt it twice, tried integers, tried bouncing orders from actor to actor and other ridiculous stuff.
There's also weird responses... for instance; I test once, and the menu moves to position A, but not back, so I put in an "else" option and test it, nothing happens so I then delete the else option. Now I test it and the menu goes screaming across the scream! What the hell man nothing has changed since the first test now that I've deleted the else option. How is that even possible?
The menu starts with a single image with 5 buttons, each button you click tells another menu to move to the left and occupy the screen. Each new menu has a back button that moves with the menu and tells the new menu to go back to its original position.
It's so simple... there's nothing that I can see that's wrong.
-Player clicks menu button 1 which tells boolean 1 to become true which tells menu button 2 to move to new position.
-It does.
-Next, player clicks menu button 2 which is suppose to tell boolean 1 to become false and return menu button 2 back to its original position.
-It doesn't.
Then the bug chase begins...
I started with a change position attribute rule, then changed to a "move to" rule. I went from a boolean being true to a boolean being false, which actually worked to move them in the first place. I've rebuilt it twice, tried integers, tried bouncing orders from actor to actor and other ridiculous stuff.
There's also weird responses... for instance; I test once, and the menu moves to position A, but not back, so I put in an "else" option and test it, nothing happens so I then delete the else option. Now I test it and the menu goes screaming across the scream! What the hell man nothing has changed since the first test now that I've deleted the else option. How is that even possible?
Comments
Hi @B1984 I suspect that what is happening is, even when the 2nd menu moves on-screen with its return button, the invisible actor with the boolean to true is still there being pressed again...
So (it's a bit difficult to be precise without seeing your actual game file, despite the amount of info you've given) amend all your button rules - especially the original 5 buttons, to move off-screen after being pressed; and in the return button of any one of the new menu cards, add that when it's back off-screen, to move the original 5 buttons into place again. Hope I've explained that clearly enough...
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
My advice would be to make sure you don't have any unlocked instances on the scene as those actors have unique rules and can cause confusion if you're not used to using them.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User