camera movement with swipe, thought i had it down, but not perfect

morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
edited November -1 in Working with GS (Mac)
currently i have an actor that covers the whole scene, it changes "touch scroll initial y" to "game touch y" when touch is pressed
and "touch scroll final y" to "game touch y" when touch is released
also upon touch released it sets "scroll" to true, and in a timer for .01 seconds it sets scroll to false

on my camera control actor i have when "scroll" is true change "self linear velocity y" to 3*("touch scroll final y"-"touch scroll final y")
the camera actor has drag at 500, so it slows down. but it doesn't come to a stop. when it gets close to 0 it shakes around wildly, changing between small negative and small positive numbers for its linear velocity.

explain why/ how to fix it please :) thank you

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Hey there.

    If you watch the multiscreen menu video on the cookbook it shows how to do a perfect swipe system. Also I have a modified version of it preset on My demo page. you can down load it from the GameSalad Creator by searching the title under the new tab.

    Enjoy
Sign In or Register to comment.