views:

308

answers:

2

Hi all!

I'm developing a game in which I've imageviews for bow and arrow. I actually wanted to move this arrow along a circular path when set in the air. Specifically, this circular path should be the one which an object will travel when thrown in the air at a distance i.e. it'll move upwards first and then downwards.

I've already tried using CAKeyFrameAnimation but the curved path drawn was actually down first and then up, objects dont usually travel that way.

I have already seen other articles related to this on stackOverflow and nothing seemed suiting my requirements. I hope I dint miss anything.

Can anybody please help me? It's really urgent.

A: 

I've already tried using CAKeyFrameAnimation but the curved path drawn was actually down first and then up, objects dont usually travel that way

Sounds like all you need to do is change your math for the y axis. Do your current math but multiply the y axis delta by -1.

Giao
A: 

0 down vote favorite

Hi all!

I'm developing a game in which I've imageviews for bow and arrow. I actually wanted to move this arrow along a circular path when set in the air. Specifically, this circular path should be the one which an object will travel when thrown in the air at a distance i.e. it'll move upwards first and then downwards.

I've already tried using CAKeyFrameAnimation but the curved path drawn was actually down first and then up, objects dont usually travel that way.

I have already seen other articles related to this on stackOverflow and nothing seemed suiting my requirements. I hope I dint miss anything.

Can anybody please help me? It's really urgent.