[]getBounds()方法未定义是咋回事?
我想做个2D的碰撞检测,用
if(sp1.getBounds().intersects(sp2.getBounds())){
trace("发生碰撞了");
b=true;
}
总是提示
"Cannot read property 'getBounds' of undefined"
是咋回事?
if(sp1.getBounds().intersects(sp2.getBounds())){
trace("发生碰撞了");
b=true;
}
总是提示
"Cannot read property 'getBounds' of undefined"
是咋回事?
没有找到相关结果
已邀请:
1 个回复
fool_tiger
赞同来自: