Hello everyone
First i have to say that the cocos engine is awesome. i am new to iphone game development and this has made things so much easier.
I am having a problem with touches. What i want is that the screen is split up into two sections, the left side has multiple sprites and if someone taps on one and they move their finger it follows, and on the right side it will fire a bullet to that location from the location of the selected sprite and dissappear.
Example.
if touch.location.y < 240 and on a sprite. select sprite and follow finger.
if touch.location.y > 240 and a sprite is selected fire bullet from sprite (not finger) to tap location that is greater than 240 on y.
so my question is how can i define the two spaces and then how can i make a bullet fly to a certain spot with a certain speed and dissappear once it get there.
Thanks
-Lars