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 create …wait 2 seconds and destroy this object. Can somebody help pls?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.