Touch release question.

JamesBoucherJamesBoucher Member Posts: 433
edited November -1 in Working with GS (Mac)
I've been away from GS for about a month (working on other items) and having a problem using touch. Here is what I need to do. I'm creating a shuffleboard type of game. When the player touches the puck and slides his finger across the screen the puck should move with the finger (This works). When he release the finger from the puck the puck should keep on moving in the same direction and speed that it was moving when the player slide his finger.

Any help would be great.

Comments

  • JamesBoucherJamesBoucher Member Posts: 433
    Come on... I see a few advance members on tonight... How about some help.

    Thanks...
  • PhoticsPhotics Member Posts: 4,172
    I'm not sure it works that way. You might have to create inertia mathematically... a counter to subtract the longer it takes to release... an adder to increase the inertia for the amount dragged.
  • quantumsheepquantumsheep Member Posts: 8,188
    Could you use the new interpolate behaviour perhaps?
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    FMG has a demo on this. look at his profile and then find it in the shared projects. I've used it. It works great!
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    It's called "Throwing/Flicking demo"

    it's exactly what you need
  • JamesBoucherJamesBoucher Member Posts: 433
    scitunes,

    I cannot find FMG profile.
  • JamesBoucherJamesBoucher Member Posts: 433
    I found it. Thanks.
Sign In or Register to comment.