移动影片剪辑时,视觉缺陷 [英] Visual bug when moving a MovieClip
问题描述
在我试图创建一个简单的傍样的游戏,我遇到了一个很奇怪的,有时严重的视力问题。
当我在运动走动设置球(一个Flash CS 5.5库影片剪辑)屏幕以相当快的速度,我注意到有时球的边缘会被切断了片刻的方向是移动的。
In my attempt to create a simple Pong-like game, I've encountered a very strange and at times severe visual bug.
When I set the ball (A Flash CS 5.5 library MovieClip) in motion moving around the screen at a rather fast speed, I've noticed that sometimes the edges of the ball would be cut-off for a short moment in the direction it is moving.
当它发生,它几乎好像球的位置
影片剪辑稍微超前了自己的边界,因此,一部分是境外无法拿得出
When it happens, it almost seems like the position of the ball
MovieClip is slightly ahead of its own border and thus the part that is outside the border fails to get drawn.
下面是说明了这个看起来一张照片 - 至少对我来说:
Here's a picture that illustrates how this looks - at least for me:
您还可以查看.swf文件的在线在这里: http://megaswf.com/serve/2099366
You can also view the .swf file online here: http://megaswf.com/serve/2099366
一些技术数据:
- 我在捕捉一个截图,不管我多么尝试是不成功的。
- 有时我会打开瑞士法郎和错误是几乎不存在,而在其他时候,这是非常明目张胆。
- 在我使用的是
EnterFrame
事件函数递增/递减X
和在影片剪辑的是
位置。 - 我从来没有遇到过任何的Flash应用程序的任何这样的问题,在本机或其他人。
- 在截断/舍入的
X
和是
的影片剪辑$ C的值$ C>并没有帮助。也没有设置
的cacheAsBitmap
为true。
- I've been unsuccessful in capturing the with a screenshot no matter how much I tried.
- Sometimes I would open the .swf and the bug would be almost non-existent while at other times it was very blatant.
- I'm using an
EnterFrame
event function to increment / decrement thex
andy
position of the MovieClip. - I have never encountered any such problem in any Flash app, in this machine or others.
- Truncating / rounding the
x
andy
values of theMovieClip
didn't help. Neither did settingcacheAsBitmap
to true.
在世界上什么可能会造成这个问题?
在此先感谢。
推荐答案
我有同样的问题,在相同的约束。正如我已经添加内容到我的比赛,这已经成为更大的问题。 这些选项大大降低了神器
I was having this same problem, under the same constraints. As I've added content to my game, this has become more of a problem. These options greatly reduce the artifact:
- 启用JPEG解块,增加JPEG画质(发布设置)
- 降低帧率
- 启用硬件加速(发布设置)
- 升级您的Flash调试播放器适用于Flash Professional
- <一个href="http://helpx.adobe.com/flash-player/kb/flash-player-google-chrome.html#How_can_I_run_debugger_or_alternate_versions_of_Flash_Player_in_Google_Chrome"相对=nofollow>使用在谷歌Chrome浏览器非集成flash版本(这解决了随机崩溃和全屏口吃对我来说)
- Enable JPEG deblocking and increase JPEG Quality (publish settings)
- Decrease framerate
- Enable Hardware acceleration (publish settings)
- Upgrade your Flash Debug Player for Flash Professional
- Use the non-integrated flash version in Google Chrome (This solved random crashes and fullscreen stutter for me)
这篇关于移动影片剪辑时,视觉缺陷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!