Get frustrated with GS - button now working but only in GS preview.
StormyStudio
United KingdomMember Posts: 3,989
Good afternoon from sunny England..
Ok, so I spent hours and hours last night trying to fix a simple problem.
create a button to go from one scene back to main menu.
Tried every which way to fix it, new button, new rule, copied and pasted a new main menu to link to. Then just now I've recreated the menu from scratch, I can now go to a highscore page and back using a simple ....if 'touch pressed' 'change scene'.... button.
But it only works in preview, when viewed on GS viewer on iphone 3gs it goes to highscore page but wont come back.
Any ideas, there's lots of rules/physics/buttons going on in the main game, but they are in another scene.
Please help, as I've spent a good number hours on what should have taken 30 seconds.
On a brighter note the rest of the game was coming along swimmingly....
Ok, so I spent hours and hours last night trying to fix a simple problem.
create a button to go from one scene back to main menu.
Tried every which way to fix it, new button, new rule, copied and pasted a new main menu to link to. Then just now I've recreated the menu from scratch, I can now go to a highscore page and back using a simple ....if 'touch pressed' 'change scene'.... button.
But it only works in preview, when viewed on GS viewer on iphone 3gs it goes to highscore page but wont come back.
Any ideas, there's lots of rules/physics/buttons going on in the main game, but they are in another scene.
Please help, as I've spent a good number hours on what should have taken 30 seconds.
On a brighter note the rest of the game was coming along swimmingly....
Comments
Image is X
If pressed change image to Y (that gives a "push" feel to it")
If released change image to X
After 0.1 second
Change scene to A
Got it working now, but it is a very dumb work around. I have to have a duplicate of the main menu scene and link back to that. It can then go backwards and forwards happily.
thought maybe it would work only keeping the new duplicate main menu but it does not.
So at least it works, hopefully I won't have to have a new main menu for each button linking to it.
I would say, make only one button from menü to highscore and copy it and change it accordingly.
If the one button works, just copy it as many times as you wish.
Maybe you edited the instance of the button instead of the master actor or vica versa. I don't know, how your menu is built and structured.
But if you want a menu button which is placed on different pages and always go back to the menu, then don't edit the instance of the button, just the master actor should say "change scene to menu" and place the button on as many pages as you want.
You can add also a sound to the pressed rule, so it has a click sound :-)