Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
怎么能做到马里奥那种,碰撞你掉血,踩他他掉血的效果?
碰撞的时候判断一下人物和怪物的相对位置,如果人物在怪物上方,就视为“踩”,否则就是怪物撞到人物
牛逼嗷,十分感谢!