Interpolating Camera

JaystaJaysta Member Posts: 18
edited September 2012 in Working with GS (Mac)
Hi guys, just a quick question, I got the camera interpolating up down left right, the screen size is 960x640. I want it so when user touches up (or left right down) and releases it stops interpolating, and does not keep going all the way to 320 at the top.

So user can partially move around scene.

Thanks.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited September 2012

    @Jaysta

    Hi, interpolate is an excellent behaviour but not the behaviour to use in this case.

    This is because when the coordinate for the actor to move is set (using its Position attribute), it'll "roll on to the end" until that condition is met.

    As a suggestion, use velocity instead; with a positive value on touched pressed, then set to zero with touch released.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • JaystaJaysta Member Posts: 18
    Thanks I'll give it a shot!
Sign In or Register to comment.