Hittestpoint not working with camera (adobe as3)

纵饮孤独 提交于 2021-02-11 14:01:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!