X and Y wrong after camera movement

MattcusMattcus Member Posts: 85
edited November 2013 in Working with GS (Mac)
I'm not sure if this is a glitch, or if I am doing something wrong, but I have an actor move to where the player touches, however when the camera moves to a different position, when the actor moves to where the player touched, it moves to where the player touched if the camera was where it was before. If that makes sense.
For example, When starting off, I touch in the middle of the screen, the actor moves to the middle of the screen. When the camera moves up, then when I touch in the middle of the screen, the actor moves below where I touched, to where it went before. Please tell me if you need any more information.
Thanks in advance.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You probably confused relative to actor and relative to scene but without seeing your rules, I have no idea.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You need to setup a touch offset. touch positions are based on the position inside the physical screen so you have to account for the camera position as well when you have a scene large than the screen size. i can't remember if its gshelper or the gamesalad cookbook that has a video on that. id check gshelper.com for a video. I'm pretty sure they have one.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    edited November 2013
    Here are some interesting comments on using the camera (and some good suggestions too):
    http://forums.gamesalad.com/discussion/41351/smooth-camera-offset

    And, of course, the classic video from TSB:

  • Case86Case86 Member, PRO Posts: 35

    any other Vid, about this? could really help me out

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Read the thread linked above.

Sign In or Register to comment.