Making image rotate several times
Hi guys. I have been searching in months now, and i still don't know, how to get an image to spin around several times.
I want to make a game like the game in real life: "Bottleneck". I can already make an image to rotate from 0 to 360 degrees. BUT...
I want the image to spin around at least 3 times (1080 degrees) and then stop at a random point.
I use the CGAffineTransformMakeRotation. It looks like its possible to make the image rotate several times??
Are there anyone who can help me? I would appreciate it so much! Thanks.
- 11-18-2015, 03:17 PM #2
- 11-23-2015, 05:07 AM #3iMore Newbie
- 10 Posts
Re: Making image rotate several times
You're heading in the right direction. The rotation calculation is based on 360 degree, so if u put 380 it's equavalent to 380-360=20 degree. It is possible to make the image spin a few times, just experiment with the value a little
- By iMore.com in forum iMore.com News DiscussionReplies: 0Last Post: 11-18-2015, 08:00 AM
- By gkendall43 in forum SiriReplies: 0Last Post: 11-17-2015, 09:08 PM
- By iMore Question in forum General Apple News & DiscussionReplies: 0Last Post: 11-17-2015, 07:21 PM
- By iMore.com in forum iMore.com News DiscussionReplies: 1Last Post: 11-16-2015, 09:54 PM