Need help! Problems when touch moves too fast

RocketBrainRocketBrain Member, PRO Posts: 269
edited November -1 in Working with GS (Mac)
I'm having the actor follow the touch with constrain since it seems to work better than move or accelerate.

theres actually two issues i'm having.

The first is if i move the touch too fast the actor stops, i'm guessing the constrain just cant keep up. but i cant get it to work.

the second issue is that you can simply touch anywhere on the screen and the actor jumps to that position...because of the way my game works....thats a problem (cheating)

Comments

  • RocketBrainRocketBrain Member, PRO Posts: 269
    actually that solves the first one, thanks!

    however the second one still a problem

    its touch position, since its on ios devices and cant detect mouse position ;)
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    RabidWeasel said:
    actually that solves the first one, thanks!

    however the second one still a problem

    its touch position, since its on ios devices and cant detect mouse position ;)

    I think the iPhone will detect mouse position. It just uses the touch as mouse position but sometimes its better to code a situation using that
  • RocketBrainRocketBrain Member, PRO Posts: 269
    ok so its interchangeable....hows that help the first issue? your solution solved the second one.

    or am i missing something?
  • RocketBrainRocketBrain Member, PRO Posts: 269
    interesting side effect. using interpolate is making other things happen that relate to touch and mouse position. its kinda weird. i changed it back to constrain and it stopped.

    one rule, when actor overlaps another actor then change scene

    second rule, position.x interpolate touch.x

    but simply touching the actor when interpolate is used activates the first rule. its really weird.
  • RocketBrainRocketBrain Member, PRO Posts: 269
    RabidWeasel said:
    interesting side effect. using interpolate is making other things happen that relate to touch and mouse position. its kinda weird. i changed it back to constrain and it stopped.

    one rule, when actor overlaps another actor then change scene

    second rule, position.x interpolate touch.x

    but simply touching the actor when interpolate is used activates the first rule. its really weird.

    what i DID change is i added another adjustment to the rule since i know touch and mouse position is interchangeable.

    touch pressed
    mouse position inside

    constrain position.x = touch.x
    constrain position.y = touch.y

    havent tested it on the device yet but it works in the gamesalad preview. guess we'll see
Sign In or Register to comment.