问题
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;
}
}
I use this command for gravity and they work with camera for Flash Player 26 but "hitTestPoint" is not working properly in "air 26 for Android". When camera moves, hitTestPoint is failing and causing the character to fall.
来源:https://stackoverflow.com/questions/51799421/hittestpoint-not-working-with-camera-adobe-as3