Wrap Touch Release Problem

Hi everyone, I'm new to GameSalad and this is my first post, so please bear with me.

I'm working on a game where the central character's movement is controlled by accelerating toward touch. And once the actor has reached my finger tip, as long as touch is pressed, he will continuously circle this point, and fly off on a tangent when touch is released, which is all great.

However, when I touch and hold my press near the perimeter (where it wraps to the opposite side), and want the character to keep circling my finger, when the actor crosses the threshold of the perimeter, he flies off on a tangent on the opposite side as if I had released my finger (as opposed to continuing to circle my finger).

Is there a way to make this actor continue to circle my finger that doesn't involve turning wrap off or changing the dimensions of the scene?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Try adding when touch is inside to your press rule.

  • zjhuffakerzjhuffaker Member, PRO Posts: 3

    Thanks LOG, but the actor is supposed to accelerate toward touches outside of his location.

    Maybe I'm not understanding what you mean...

    The actual rule I have for my actor is:

    when attribute game.touch is true

    accelerate toward game.touches.touch 1. x, game.touches.touch 1. y

    Btw, the game attribute which I named "touch" is within the background actor whose dimensions are 1024x768 (the size of the iPad).

  • zjhuffakerzjhuffaker Member, PRO Posts: 3

    Actually, I have to revise my original post. I just realized that when the central character crosses the threshold (perimeter) and wraps to the other side, he does NOT "fly off on a tangent on the opposite side as if I had released my finger" as I'd originally stated -- it just appeared that that was the case.

    He actually continues to accelerate toward the location of my touch, but from the opposite side of the screen. Don't know if that helps.

    Sorry for the consecutive posts.

Sign In or Register to comment.