我想给图像一个 HUD 的操纵杆。
我拥有的HUD文件:
myJoystick = [CCJoyStick initWithBallRadius: 25 MoveAreaRadius: 65 isFollowTouch: NO isCanVisible: YES isAutoHide: NO hasAnimation: YES];
         [myJoystick setBallTexture: @ "joystick_control.png"];
         [myJoystick setDockTexture: @ "joystick_lid.png"];
         [myJoystick setHitAreaWithRadius: 100];
        
         myJoystick.position = ccp (100,100);
         myJoystick.scale = 0.3;
         myJoystick.delegate = self;
         [self addChild: myJoystick of: 5];
在 HelloWorldLayer 中:
(Void) onCCJoyStickUpdate (CCNode *) sender Angle: (float) Angle Direction: (CGPoint) direction Power: (float) power {
     if (sender == myJoystick) {
         spider2.rotation =-angle;
         ...
找不到我的操纵杆。我该如何解决?
这是我的代码: 链接