0
grav = 0; 
gravity = 2; 
this.character.y += grav;
grav += gravity;
 while (this.ground.hitTestPoint(this.character.x, this.character.y, true)) { this.character.y -=gravity; 
grav = 0; 
}
 }

我将此命令用于重力,它们与 Flash Player 26 的相机一起使用,但“hitTestPoint”在“air 26 for Android”中无法正常工作。当相机移动时,hitTestPoint 失败并导致角色跌落。

4

0 回答 0