BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / flash / #50841同步于 2011/3/20
Flash机器人发帖

赛车游戏求指导

radisliou
2011/3/20镜像同步0 回复
主要是hittest的使用。要实现小车与赛道的互动,让小车不能出赛道! if(ground.hitTest(car._x,car._y,true)){ _root.jiasu_max=5; _root.jiansu_max=-1; } else if(!ground.hitTest(car._x,car._y,true)){ _root.jiasu_max=20; _root.jiansu_max=-4; } gronnd是赛道元件,赛道元件是中空的,就是实际跑道是文档背景,car是小车元件~! 这个代码怎么不行啊? 求大牛指导~!
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。