Get frustrated with GS - button now working but only in GS preview.

StormyStudioStormyStudio United KingdomMember Posts: 3,989
edited November -1 in Working with GS (Mac)
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....

Comments

  • synthesissynthesis Member Posts: 1,693
    Is there a switch in your main scene that is bouncing you back to your HS page?
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    Nope. Nothing in either scene now except a background image and a button to the other scene. Works fine in preview?
  • synthesissynthesis Member Posts: 1,693
    Try deleting the actor that is bad and then clone the actor that works and change the art and the scene target. If that doesn't work...something is definitely funky!
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    Ok will give that a try. Cheers
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    I made my buttons so:

    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
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    Hunnenkoenig, nce idea...may add that...

    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.
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    You do something wrong.

    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 :-)
  • rebumprebump Member Posts: 1,058
    Its GS! I have one scene where if I leave it like it should be, all but one of the actors that is manually placed show up. If I add an invisible dummy actor to that scene, then the missing actor shows up and of course the new invisible actor has gone missing (yes, even if I make it visible). So basically, for that scene, the last actor to always be manually placed on it never shows up (and I have re-created the dang scene too). This one stumps me...
Sign In or Register to comment.