移动影片剪辑时,视觉缺陷 [英] Visual bug when moving a MovieClip

查看:148
本文介绍了移动影片剪辑时,视觉缺陷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我试图创建一个简单的傍样的游戏,我遇到了一个很奇怪的,有时严重的视力问题。
当我在运动走动设置球(一个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

一些技术数据:

  1. 我在捕捉一个截图,不管我多么尝试是不成功的。
  2. 有时我会打开瑞士法郎和错误是几乎不存在,而在其他时候,这是非常明目张胆。
  3. 在我使用的是 EnterFrame 事件函数递增/递减 X 在影片剪辑的是位置。
  4. 我从来没有遇到过任何的Flash应用程序的任何这样的问题,在本机或其他人。
  5. 在截断/舍入的 X 影片剪辑并没有帮助。也没有设置的cacheAsBitmap 为true。
  1. I've been unsuccessful in capturing the with a screenshot no matter how much I tried.
  2. Sometimes I would open the .swf and the bug would be almost non-existent while at other times it was very blatant.
  3. I'm using an EnterFrame event function to increment / decrement the x and y position of the MovieClip.
  4. I have never encountered any such problem in any Flash app, in this machine or others.
  5. Truncating / rounding the x and y values of the MovieClip didn't help. Neither did setting cacheAsBitmap 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆