Multiscreen menu help

ChucklingMonkeyChucklingMonkey Member Posts: 92
edited November -1 in Working with GS (Mac)
I've been following the video on game salad cookbook on how to do a multiscreen menu and so far its working pretty well. I have a few question, How can I make it so if you don't drag the first screen completely over to the other side it would sling back? Also Whenever I let go of the screen it also goes to the level the mouse is on. How do I that?

Thanks,
Daniel

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Make a Real game attribute called snapto

    Then make an invisible actor called snapto.x that is 480x320 and place it over each are that you want to be a screen.

    In that actor

    When overlap or collide with cam (that would be the actor in the middle of the screen controlling the camera if you have named it differently)
    --Change game.snapto.x to self.position.x

    Then in the cam actor

    When mousebutton is up
    --interpolate self.position.x to game.snapto.x
  • ChucklingMonkeyChucklingMonkey Member Posts: 92
    tenrdrmer said:
    Make a Real game attribute called snapto

    Then make an invisible actor called snapto.x that is 480x320 and place it over each are that you want to be a screen.

    In that actor

    When overlap or collide with cam (that would be the actor in the middle of the screen controlling the camera if you have named it differently)
    --Change game.snapto.x to self.position.x

    Then in the cam actor

    When mousebutton is up
    --interpolate self.position.x to game.snapto.x
    Thanks. When it goes back the screen starts to bounce on the X axis. How can I fix that? Also How can I fix the problem when I click (and the mouse is on a number box) to drag to the next and let go it goes to that level?

    Thanks
Sign In or Register to comment.