开发者

How to use C# XNA timer?

I am using XNA my rocket is creating smoke objects when it fly. I need to know how to use some timer in XNA for these simple smoke objects. When the object is开发者_如何学Go create ...wait 2 seconds and destroy this object. Can somebody help pls?


Your update method should be being passed a GameTime object. Record the time in ctor or setup method, and compare it every update. Once a specified period has elapsed, run your teardown method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜