Problem with code for game for XNA 3.0 (Visual C# 2008)
Author |
Message |
deathbow2134
![](http://compsci.ca/v3/uploads/user_avatars/19776769324c6acb35339a5.jpg)
|
Posted: Sun May 31, 2009 8:44 am Post subject: Problem with code for game for XNA 3.0 (Visual C# 2008) |
|
|
I am a novice programmer. I am writing a simple space game in XNA game studio for Visual C# 2008. This always happens. I have programmed a sprite class that can switch between animations and update, render, and draw the current frame; as well as moving around.
But whenever I use this class, the game becomes very slow and chunky. Also, The gameTime.isRunningSlowly Property equals True. It runs smoothly when I just use the animation class (that animates a non moving image)... is it just poor coding that causes this problem? What can I do? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Vermette
![](http://compsci.ca/v3/uploads/user_avatars/637825944810b5d4444c6.jpg)
|
Posted: Sun May 31, 2009 9:04 am Post subject: Re: Problem with code for game for XNA 3.0 (Visual C# 2008) |
|
|
It'd be easier to identify a program bottleneck if we could see the code in question. |
|
|
|
|
![](images/spacer.gif) |
|
|