Best way to spin a wheel?

guillefaceguilleface Member Posts: 1,014
edited July 2012 in Working with GS (Mac)
hi, i need to spin a wheel by increasing its rotations by 7.5, as this way will always land in a certain angle, this way i can have it when angle is ??? to add money, but i want it to spin if possible by dragging a finger, and depending how fast you do it to increase velocity. does some one have a demo or something,thanks

Answers

  • simo103simo103 Member, PRO Posts: 1,331
    @guilleface ... If you have a Mac, I have a spin wheel template on the right of this page:
    http://www.funkymunkygames.com/GameSalad/search/ it doesn't do swipe to spin but does have coding to have the wheel only stop on certain points which I think is part of what you need/want.

    And this thread has some swipe to spin stuff that might help:

    http://forums.gamesalad.com/discussion/38372/turn-a-wheel-with-you-finger
  • guillefaceguilleface Member Posts: 1,014
    hey thanks but i noticed that i will always get the same value, and i was checking the other files from that thread but i just realized that i will have a player vs cpu so there is no way for the the cpu to spin the wheel, on my wheel i have a total of 48 values, so thats every 7.5 degrees , is there a way to set for 5 seconds its rotation or angular velocity so i don't get a the same amount most of the time?
  • J_PANJ_PAN Member Posts: 140
    @guilleface ... If you have a Mac, I have a spin wheel template on the right of this page:
    http://www.funkymunkygames.com/GameSalad/search/ it doesn't do swipe to spin but does have coding to have the wheel only stop on certain points which I think is part of what you need/want.

    And this thread has some swipe to spin stuff that might help:

    http://forums.gamesalad.com/discussion/38372/turn-a-wheel-with-you-finger
    that is awesome simo103
  • guillefaceguilleface Member Posts: 1,014
    ok now what i did was , when press to change its rotation to random rotation this way i can always get a different angle, and i set it to to change angular velocity to -800 for 3 seconds and i set its physics angular drag to .5, now the wheel spins and slow downs just the way i want, but in the end i get angles like 37.45, 280.84,
    i had my rules to be like when angle is 0 to change money value to $1000
    when =7.5 to 3000
    when =15 to 4000
    when -22.7 to 3000 and so on every 7.5, but now i don't get this exactly angles,right now i am thinking how to solve this problem, if you could know how please let me know. thanks
Sign In or Register to comment.