Slide menu manipulation

craigybwoycraigybwoy Member Posts: 6
edited November -1 in Working with GS (Mac)
I have incorporated the slide menu tutorial into my platform game to enable the user to view the entire map by swiping the screen. I have then placed an actor on the scrolling background and constrained the actors X and Y position to the mouse touch position which allows the actor to follow the mouse position on screen. (so far so good) for some reason, once the screen has started to scroll the movable actor no longer follows the mouse.

Does anyone know how to resolve this issue?

Comments

  • osucowboy18osucowboy18 Member Posts: 1,307
    Use this video by Tshirtbooth. I have created several menu systems with this video and it works great! Good luck with it :)

    - Alex

  • craigybwoycraigybwoy Member Posts: 6
    thanks for the response. this is the same tutorial that i used to produce the scroll function. I have now added an actor on top of the screen and want to place him into the game but once i scroll the actor doesn't follow the mouse.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    youll prob have to add a offset for the camera position in the actor. Something along the lines of constrain self position x to mouse position x+camx (cam x being a attibute you made and constrained to the camera origin x)
  • craigybwoycraigybwoy Member Posts: 6
    John and mr tshirtbooth, thanks i'll hunt down the video now. :)
  • osucowboy18osucowboy18 Member Posts: 1,307
    I think it would also work if you put that actor into a non scrollable layer on top of the background layer, but below the drag layer in TSBs video.

    - Alex
Sign In or Register to comment.