how to add swipe to spinning wheel menu? (tsb's wheel menu template)

morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
edited November -1 in Working with GS (Mac)
how would i make the wheel rotate and change which actor im touching by using a swipe down or up the screen instead of two actors that say when touched go up and when touched go down

how would i do the magnitude between start of swipe and end of swipe and make that change the rotation of the wheel?

Comments

  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    ok thx, im looking at it right now

    i want it to be faster rotating at first then slow to a stop, and click to what ever rotation is closest to having the level perfectly in the middle

    ill be working on it
  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    i tried interpolating actors rotation using swipe attributes
    actor rotation ---> actor rotation+(touchy-releasey)
    but it just interpolates the speed of rotation, how would i interpolate angles,
    example, a long swipe (big difference in y for point of touchy and point of releasey) would change the angle more drastically then a small swipe
  • old_kipperold_kipper Member Posts: 1,420
    No t sure about this but I would try attaching an actor by constrain to touch to the swiping touch and then on release lock the x and y of the actor into number attributes and then do a vector to angle which you could interpolate around to if you are after a following of the position of the swipe, but if you are after a magnitude thing I would use the start point of the following actor and the release point to calc a magnitude and then have a rule for that interpolates to a position in the rotation based on the size of the swipe.

    kip
  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    i ended up just doing a change angular velocity to touchy-releasey
    then interpolating angular drag to 1 over .5 seconds, seemed to give the effect i wanted, spun faster the bigger the swipe, and slowed down according the the starting velocity

    is this the best way to do it??
  • morphinegamingmachinemorphinegamingmachine Member, PRO Posts: 449
    i ended up just doing a change angular velocity to touchy-releasey
    then interpolating angular drag to 1 over .5 seconds, seemed to give the effect i wanted, spun faster the bigger the swipe, and slowed down according the the starting velocity

    is this the best way to do it??
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    merged your threads since you bumped them both with the same comment.
Sign In or Register to comment.