如何在等待动画加载时创建类似Preloader [英] How to create like a Preloader while waiting for animation to Load

查看:132
本文介绍了如何在等待动画加载时创建类似Preloader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为孩子们创造这个游戏。在主窗体上可以从列表中选择不同的字符。每个角色都有自己的动画,有些比另一个更长。所有动画都是png序列,范围在500到2000个图像之间。

I'm creating this game like for Kids. On the main form the can select from a list different Characters. Each Character has its own Animation some are longer than the other. All the Animations are png sequences ranging between 500 and 2000 images.

当用户选择他的角色时,它将显示角色配置文件图像(just1)和动画(长)。程序运行正常,唯一的事情就是在动画加载之前需要大约20到50秒。

When the user selects his character it will display the character profile image (just1) and the animation(long). The program runs fine the only thing is that it takes about 20 to 50 seconds before the animation has loaded.

当发生这种情况时,我想显示一个文本框或一个显示正在加载的图像。 ..当动画有了 完成加载 我希望文本框或说"正在加载..."的图像消失。 

While this happens I want to display a text box or an image which says Loading... and when the animation has  finished loading  I want the the text box or the image which says Loading... to disappear. 

我仍然是c#的初学者,我搜索了很多解决方案,但是成功。同样在论坛中,我找不到可能有用的东西。

I'm still a beginner in c#, and I googled a lot for a solution but with out success. Also in the Forum here I could not find something which could be helpful.

任何建议?

谢谢

Frantonio

Frantonio

推荐答案

您好Frantonio,

Hi Frantonio,

这是一个已经进行的MSDN论坛帖子,应该可以给你一些指导。

Here is a MSDN forum post already conducted that should be able to give you some direction.

https ://social.msdn.microsoft.com/Forums/windows/en-US/ec91d3bf-4afe-47c9-8592-77a7ebf2f645/showing-loading-animation-on-windows-form论坛= WinForms的

希望有所帮助,祝你好运。

Hope that helps, best of luck.


这篇关于如何在等待动画加载时创建类似Preloader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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