我想在同一行中检测两次碰撞检测.
例如:-(见下图)
椭圆和矩形或有缺陷.之后我的椭圆将沿直线路径向下行进并检测另一个矩形.
第一个是(在轨迹路径上行进)工作正常.第二个我想通过直线向下传递以进行碰撞检测.
怎么做这个过程.

如何跟踪cocos 2d中球流动的路径
例如在愤怒的小鸟游戏视频中鸟儿流动的动作.他们显示路径.同样我想要
我需要帮助才能理解崩溃日志.该应用程序在我的模拟器上工作正常,但它在设备中崩溃.
我的模拟器运行: - iPhone模拟器225,iPhone OS 4.1(iPhone 4/8B5091b)
这是我的设备崩溃日志: -
Incident Identifier: CD0E8B93-5CF9-402C-9787-4B175C51A690
CrashReporter Key: 1961913be3204fe8cb5a39c1e00ac0f03a452876
Hardware Model: iPhone1,2
Process: My Game[1115]
Path: /var/mobile/Applications/2968E5FB-96DD-443D-B386-D68F08E9345E/My Game.app/My Game
Identifier: My Game
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-12-29 23:39:15.753 -0500
OS Version: **iPhone OS 4.2.1 (8C148)**
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x35de3ad0 0x35d5a000 + 563920
1 libSystem.B.dylib 0x35de3abe 0x35d5a000 + 563902
2 libSystem.B.dylib …Run Code Online (Sandbox Code Playgroud) 我需要将 PVR.CCZ 图像文件转换为 PNG 图像来编辑我的图像文件。m 原始图像被删除。我使用纹理打包程序来创建 pvr 文件。
我参考此链接:-如何从 .pvr.ccz 文件恢复 PNG 图像? 但没有用。
ccfollow动作正确地跟随我的射弹.什么时候,双击识别.
看下面的代码.是错的.
这是我的代码: -
- (void)update:(ccTime)dt {
if (numTaps==1 ) {
[self runAction:[CCFollow actionWithTarget:nextProjectile worldBoundary:CGRectMake(0,0,1050,350)]];
}
}
- (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
numTaps = [[touches anyObject] tapCount];
printf("Tapcount : %d",numTaps);
if (numTaps ==1) {
nextProjectile = [[CCSprite spriteWithFile:@"Weapon.png"] retain];
nextProjectile.position = ccp(nextprojectile .contentSize.width/2+65, nextprojectile.contentSize.height/2+70);
[nextProjectile runAction:[CCSequence actions: [here's my nextprojectile actions],nil]];
}
}
Run Code Online (Sandbox Code Playgroud)
看过上面的代码.你提出的一个问题.为什么在if条件中提到ccfollow动作.
答案在这里,通常,我在更新功能中提及它将无法正常工作,当我设置此条件时,如果条件在双击识别后工作.
如何纠正这个问题?
任何帮助将受到高度赞赏.