Skip to main content
added 141 characters in body
Source Link
Lewis
  • 511
  • 2
  • 13

Putting them both to delta shouldn't matter, as you say one works already I take it you've enable touches in the init method.

Could you post your touch methods please? Not only you do you need to enable touch you should probably make sure you're using

-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Instead of cctouch. I think the problem may lie with how you handle the code in the above methods, if you edit your question with that code, then people maybe able to help you a little more.

Update:

I see you're using sneaky joystick. I think that this maybe outdated now, as it was last updated around 2010. Take a look at this repository its a lot cleaner and easier to implement, there will be no need for really long if statements as you can move your sprite using three joystick delegates:

-(void)joystickControlBegan;
-(void)joystickControlMoved;
-(void)joystickControlEnded;

https://github.com/zaldzbugz/zJoystick

EDIT:

Have you set multitouch available on EAGLView?

After you've initialized EAGLView add:

view.multipleTouchEnabled = YES;

Putting them both to delta shouldn't matter, as you say one works already I take it you've enable touches in the init method.

Could you post your touch methods please? Not only you do you need to enable touch you should probably make sure you're using

-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Instead of cctouch. I think the problem may lie with how you handle the code in the above methods, if you edit your question with that code, then people maybe able to help you a little more.

Update:

I see you're using sneaky joystick. I think that this maybe outdated now, as it was last updated around 2010. Take a look at this repository its a lot cleaner and easier to implement, there will be no need for really long if statements as you can move your sprite using three joystick delegates:

-(void)joystickControlBegan;
-(void)joystickControlMoved;
-(void)joystickControlEnded;

https://github.com/zaldzbugz/zJoystick

Putting them both to delta shouldn't matter, as you say one works already I take it you've enable touches in the init method.

Could you post your touch methods please? Not only you do you need to enable touch you should probably make sure you're using

-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Instead of cctouch. I think the problem may lie with how you handle the code in the above methods, if you edit your question with that code, then people maybe able to help you a little more.

Update:

I see you're using sneaky joystick. I think that this maybe outdated now, as it was last updated around 2010. Take a look at this repository its a lot cleaner and easier to implement, there will be no need for really long if statements as you can move your sprite using three joystick delegates:

-(void)joystickControlBegan;
-(void)joystickControlMoved;
-(void)joystickControlEnded;

https://github.com/zaldzbugz/zJoystick

EDIT:

Have you set multitouch available on EAGLView?

After you've initialized EAGLView add:

view.multipleTouchEnabled = YES;
added 350 characters in body
Source Link
Lewis
  • 511
  • 2
  • 13

Putting them both to delta shouldn't matter, as you say one works already I take it you've enable touches in the init method.

Could you post your touch methods please? Not only you do you need to enable touch you should probably make sure you're using

-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Instead of cctouch. I think the problem may lie with how you handle the code in the above methods, if you edit your question with that code, then people maybe able to help you a little more.

Update:

I see you're using sneaky joystick. I think that this maybe outdated now, as it was last updated around 2010. Take a look at this repository its a lot cleaner and easier to implement, there will be no need for really long if statements as you can move your sprite using three joystick delegates:

-(void)joystickControlBegan;
-(void)joystickControlMoved;
-(void)joystickControlEnded;

https://github.com/zaldzbugz/zJoystick

Putting them both to delta shouldn't matter, as you say one works already I take it you've enable touches in the init method.

Could you post your touch methods please? Not only you do you need to enable touch you should probably make sure you're using

-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Instead of cctouch. I think the problem may lie with how you handle the code in the above methods, if you edit your question with that code, then people maybe able to help you a little more.

Putting them both to delta shouldn't matter, as you say one works already I take it you've enable touches in the init method.

Could you post your touch methods please? Not only you do you need to enable touch you should probably make sure you're using

-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Instead of cctouch. I think the problem may lie with how you handle the code in the above methods, if you edit your question with that code, then people maybe able to help you a little more.

Update:

I see you're using sneaky joystick. I think that this maybe outdated now, as it was last updated around 2010. Take a look at this repository its a lot cleaner and easier to implement, there will be no need for really long if statements as you can move your sprite using three joystick delegates:

-(void)joystickControlBegan;
-(void)joystickControlMoved;
-(void)joystickControlEnded;

https://github.com/zaldzbugz/zJoystick

Source Link
Lewis
  • 511
  • 2
  • 13

Putting them both to delta shouldn't matter, as you say one works already I take it you've enable touches in the init method.

Could you post your touch methods please? Not only you do you need to enable touch you should probably make sure you're using

-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Instead of cctouch. I think the problem may lie with how you handle the code in the above methods, if you edit your question with that code, then people maybe able to help you a little more.