GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Combining touch offset with camera offset.

GraybayGraybay Posts: 114Member
edited November 2011 in Working with GS (Mac)
So basically I've made an actor that I can drag around the scene with my mouse. I followed Tshirtbooth's "Camera Offset: following mouse or touch in large scenes using GameSalad" cookbook tutorial and it worked wonders for keeping the drag in place while the scene scrolls to the right. I then proceeded to add the touch offset from Tshirtbooth's "Touch Offset on constrained actors gamesalad" tutorial on top of these rules, so that the actor would not always snap to the center of where the mouse is. Unfortunately the touch offset seems to cancel out the camera offset. Is there an effective way to combine these two? This is what I tried: image I'm totally stumped on this one. Thanks guys!

Comments

  • GraybayGraybay Posts: 114Member
    edited December 2011
    Tshirtbooth, is it possible to combine these two? I know you are a busy birthday man :P
  • GraybayGraybay Posts: 114Member
    Thank you Tshirt! I'm headed out for a bit, I will try this evening.
  • GraybayGraybay Posts: 114Member
    This logically seemed like it would do it, but unfortunately adding the brackets didn't have any effect.
  • GraybayGraybay Posts: 114Member
    Thank you, I sent the email.
  • GraybayGraybay Posts: 114Member
    Wow that was fast, I bow to you! You were right, the brackets were exactly what I needed. Like you said, they have to be added to the other rule in the stack also, I always overlook little details like that. Thank you very much Tshirtbooth.
This discussion has been closed.