开发者

How to use C# XNA timer?

开发者 https://www.devze.com 2023-03-11 06:07 出处:网络
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 a

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

精彩评论

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