Smooth scrolling problems and Content Folder shortcut

Hello everyone! I’m now done with Episode 4.  I must say I’m impressed at how well everything is going wrong ;) .

Mouse scrolling problems

Implementing my Smooth Scrolling brang me some problems.  I corrected them right now.. but my code just need some serious refactoring if I want to keep track of everything.

The first problem I encontered was that when scrolling, I wasn’t getting the right cell highlighted. I realized later that Nick correct that problem in Episode 5. However.. his method don’t work for us. 

Once I’m done refactoring everything, I will post the solution here.

Content folder shortcut

Ok, the one most stupid thing I saw from Nick’s tutorial was the Content Folder. I know it’s required and all but going to select a Content Folder at every test is rather…. time consuming.

The solution I found is to use a configuration file to store the content path. If the content path is empty, the user must select one. If he did one time, it’ll be saved and will be considered as default when we execute the application again. I suggest you read the article about Configuration files on MSDN. 

http://msdn.microsoft.com/en-us/library/aa730869(VS.80).aspx

Don’t forget to put your scope to “user” if you want to modify it.

Advertisement

3 Responses to Smooth scrolling problems and Content Folder shortcut

  1. Nuno Sousa says:

    Hi boomwav,

    I’m thoroughly enjoying your tips on Nick’s guide.
    I have some OpenGL experience but I have not yet done anything in 2D. It’s a different beast altogether.

    Please keep posting!

  2. boomwav says:

    Hi! I’m glad to see some people liked my little tricks. I’ll try keeping it up to date then! Thanks for the feedback, I truly appreciate!

  3. boomwav says:

    I’m new to XNA too. It’s really powerful though. If you have any question, feel free to ask, maybe I could help you.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.