移动和在VB6 animaring时闪烁的图像 [英] Image flickering when moving and animaring in VB6
问题描述
我使用VB6做一个游戏。您使用箭头键移动,还可以当移动有一个动画。我已经缓存那招的精灵变成stdPicture阵列,但仍获得闪烁出于某种原因,每一次的字符。我怎样才能停止?我使用透明的精灵和一个坚实的背景图像对象。我得到与白色背景上的精灵,甚至在一个图片框闪烁。有没有什么办法可以阻止fickering?目前,我与动画的LoadPicture()和我谨与Image.Left = Image.Left +/- 200等。
I am using VB6 make a game. You move with the arrow keys, and also when you move there is a animation. I have cached the character that move's sprites into a stdPicture array, but still get flickering every time for some reason. How can I stop this? I am using an image object with transparent sprites and a solid background. I get flickering with white background on sprite and even in a picture box. Is there any way to stop the fickering? Currently I animate with LoadPicture() and I move with Image.Left = Image.Left +/- 200 etc.
推荐答案
哇!为什么还没有我在此绊倒了吗?我刚刚找到了解决办法!的解决方案是使用闪存。使用的Shockwave Flash Object删除闪烁,你可以有动画。它是一种双赢!
Wow! Why havent I stumbled upon this yet? I just found the solution! The solution is to use Flash. Using the Shockwave flash object removes the flickering and you can have animations. Its a double win!
这篇关于移动和在VB6 animaring时闪烁的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!