<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Game Design</title><link>http://forums.xna.com/forums/44.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>How to go from design to making?</title><link>http://forums.xna.com/forums/thread/250991.aspx</link><pubDate>Fri, 13 Nov 2009 16:51:32 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:250991</guid><dc:creator>Pablo Nieto</dc:creator><slash:comments>13</slash:comments><comments>http://forums.xna.com/forums/thread/250991.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=250991</wfw:commentRss><description>Hello creators!!&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m on a new project, a lot of new people also, but we have a lot of ideas and energy to start, the problem is we don&amp;#39;t know where to begin.&lt;br /&gt;
We have the whole idea of the game, we even have some characters designed, currently we are working on the design doc, and my question comes here. It may look obvious but, onve we have the doc, what should we do?, how can we organize the development teams?, i mean, how do we take the next step?.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I really appreciate your help.&lt;br /&gt;
&lt;br /&gt;
thank you&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>How to create a structured game</title><link>http://forums.xna.com/forums/thread/251811.aspx</link><pubDate>Mon, 16 Nov 2009 01:14:24 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:251811</guid><dc:creator>DrEvilKoala</dc:creator><slash:comments>9</slash:comments><comments>http://forums.xna.com/forums/thread/251811.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=251811</wfw:commentRss><description>&lt;br /&gt;
Hi guys!&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m totally new to XNA, in fact this is my first post. I watched all the tutorial videos on the community website and scanned through several examples. I first tried my hand at creating a couple of very simple games (one of these was a pong-clone with horrible collision detection and nearly unbeatable AI), and now I want to try to create a simple platformer. The first problem I encountered was the creation of a structured game. As you can imagine, for my first games I just threw all my code in the Game1.cs class. This worked, but it was a total mess. So I&amp;#39;m looking for a way to create a structured game design, with classes to inherit from, proper setup for menu/pause/option-screens, some pre-designed classes to implement sprite animation or collision. Perhaps a simple 2D-engine. To be honest, I&amp;#39;m not a very experienced programmer. I know some Java and Oberon-2 (Yeah, I know...), but that&amp;#39;s it. So I basically have no idea how to go about creating a structured game.&lt;br /&gt;
&lt;br /&gt;
I looked into using some professional game engines. TorqueX looked really nice, but then I&amp;#39;d have to spend 150$ on the license, 50$ on a book to get me familiarized with the engine and another 100$ for a CC premium membership. This is a little to much money for a student/hobbyist who&amp;#39;s not looking to actually make money with those games right now. I also found a few tutorials for creating a proper 3D engine in C#, but that was a little beyond my grasp of both C# and Computer Graphics.&lt;br /&gt;
I also wanted to buy a book or two, but a lot of people told me they were too advanced (Learning XNA 3.0 for example).&lt;br /&gt;
&lt;br /&gt;
So does anyone know a guide/tutorial/book that sets up the basic layout for simple, yet organized games? Just for the record, I&amp;#39;m looking to create simple 2D games mainly. I&amp;#39;m just looking for something to kind of set me off into the world of XNA, without assuming I know too much about C#.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
P.S. I hope you guys understood what I meant. Everyone at school insists on using Dutch for all the programming terms we use.</description></item><item><title>Puzzle Implementation Problems</title><link>http://forums.xna.com/forums/thread/252533.aspx</link><pubDate>Tue, 17 Nov 2009 22:46:03 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252533</guid><dc:creator>Caomgen</dc:creator><slash:comments>5</slash:comments><comments>http://forums.xna.com/forums/thread/252533.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252533</wfw:commentRss><description>So, in the puzzle-platformer I&amp;#39;m programming, doors are opened when you appease various NPC by bringing them items. At least that&amp;#39;s how it&amp;#39;s supposed to work.&lt;br /&gt;
&lt;br /&gt;
The NPCs disappear whenever you bring the item they need to them, and a door (or doors) on the level are supposed to open, letting the player get through.&lt;br /&gt;
&lt;br /&gt;
The way I&amp;#39;m doing it is:
&lt;div style="border:1px solid #7f9db9;overflow:auto;background-color:white;font-family:courier new;font-size:11px;"&gt;
&lt;table cellspacing="0" cellpadding="0" style="border-width:0px;border-bottom:0px solid #eeeeee;margin:2px 0px;width:99%;border-collapse:collapse;background-color:#ffffff;"&gt;
    
    
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="font-size:11px;"&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;for&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;npcs.count&amp;nbsp;-&amp;nbsp;1;&amp;nbsp;i&amp;nbsp;&amp;gt;=&amp;nbsp;0;&amp;nbsp;i--)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:11px;"&gt;(npcs.ElementAt(i).isPacified)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;foreach&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;(Door&amp;nbsp;door&amp;nbsp;&lt;/span&gt;&lt;span style="color:blue;"&gt;in&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;doors)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:11px;"&gt;(door.AssociatedNPC.Equals(npc.ElementAt(i).Name))&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;door.OpenDoor();&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;br /&gt;
            &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; npcs.RemoveAt(i); &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
    
&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
But...none of the doors open. Any suggestions would be appreciated. I&amp;#39;ve tried a variety of other methods, but I keep coming back to this one.&lt;br /&gt;</description></item><item><title>music</title><link>http://forums.xna.com/forums/thread/253677.aspx</link><pubDate>Fri, 20 Nov 2009 23:02:57 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253677</guid><dc:creator>daGman</dc:creator><slash:comments>1</slash:comments><comments>http://forums.xna.com/forums/thread/253677.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253677</wfw:commentRss><description>where is a good place to find good music for games?</description></item><item><title>Please Help Me With The book "RPG Programming Using XNA".</title><link>http://forums.xna.com/forums/thread/253519.aspx</link><pubDate>Fri, 20 Nov 2009 15:40:07 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253519</guid><dc:creator>Aflakjuju</dc:creator><slash:comments>10</slash:comments><comments>http://forums.xna.com/forums/thread/253519.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253519</wfw:commentRss><description>Hello, I&amp;#39;m trevor and im looking for some help with Jim Perry&amp;#39;s book, &lt;em&gt;RPG Programming Using XNA Game Studio 3.0&lt;/em&gt;.&lt;br /&gt;
I have no idea why its doing this, so im looking for some help.&lt;br /&gt;
&lt;br /&gt;
EDIT: Here is my new source code:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size:13px;"&gt;
&lt;div id="ms__id424" style="border:#7f9db9 1px solid;background-color:white;font-family:courier new;font-size:11px;overflow:auto;"&gt;
&lt;table style="border-bottom:#eee 0px solid;border-right-width:0px;background-color:#fff;margin:2px 0px;width:99%;border-collapse:collapse;border-top-width:0px;border-left-width:0px;" cellspacing="0" cellpadding="0"&gt;
    
    
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="font-size:11px;"&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&lt;span style="font-size:11px;"&gt; System;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&lt;span style="font-size:11px;"&gt; System.Collections.Generic;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&lt;span style="font-size:11px;"&gt; System.Linq;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&lt;span style="font-size:11px;"&gt; System.Text;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&lt;span style="color:blue;"&gt;namespace&lt;/span&gt;&lt;span style="font-size:11px;"&gt; RPG  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;{  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;class&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Stat  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;private&lt;/span&gt;&lt;span style="font-size:11px;"&gt; StartType _type;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;private&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _name;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;private&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _abbreviation;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;private&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _description;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;private&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _statCalculation;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;private&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;static&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;readonly&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;char&lt;/span&gt;&lt;span style="font-size:11px;"&gt;[] _operators = { &amp;#39;+&amp;#39;, &amp;#39;-&amp;#39;, &amp;#39;*&amp;#39;, &amp;#39;/&amp;#39; };  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;const&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;short&lt;/span&gt;&lt;span style="font-size:11px;"&gt; MaxStatValue = (&lt;/span&gt;&lt;span style="color:blue;"&gt;short&lt;/span&gt;&lt;span style="font-size:11px;"&gt;)DieType.d99;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;const&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;short&lt;/span&gt;&lt;span style="font-size:11px;"&gt; HealMaxStatValue = (&lt;/span&gt;&lt;span style="color:blue;"&gt;short&lt;/span&gt;&lt;span style="font-size:11px;"&gt;)DieType.d999;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;const&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt; PoundsPerStatPoint = 3;  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;enum&lt;/span&gt;&lt;span style="font-size:11px;"&gt; StatType  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        Regular,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        Calculated  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Stat()  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Stat(&lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; name)  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        _name = name;  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; StatType Type  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;get&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _type; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;set&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { _type = value; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Name  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;get&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _name; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;set&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:11px;"&gt; (!&lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt;.IsNullOrEmpty(value)) _name = value; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Abbreviation  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;get&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _abbriviation; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;set&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:11px;"&gt; (!&lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt;.IsNullOrEmpty(value)) _abbriviation = value; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Description  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;get&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt;&lt;span style="font-size:11px;"&gt; _description; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;set&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:11px;"&gt; (!&lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt;.IsNullOrEmpty(value)) _description = value; }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    }                      &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt; StatCalculation  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        &lt;span style="color:blue;"&gt;get&lt;/span&gt;&lt;span style="font-size:11px;"&gt; { &lt;/span&gt;&lt;span style="color:blue;"&gt;return&lt;/span&gt;&lt;span style="font-size:11px;"&gt; ConstructStatCalulation(); }  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;        &lt;span style="color:blue;"&gt;set&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;            &lt;span style="color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:11px;"&gt; (_type == StatType.Calculation)  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;            {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;                &lt;span style="color:blue;"&gt;if&lt;/span&gt;&lt;span style="font-size:11px;"&gt; (!&lt;/span&gt;&lt;span style="color:blue;"&gt;string&lt;/span&gt;&lt;span style="font-size:11px;"&gt;.IsNullOrEmpty(value))  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;                {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;                    _statCalculation = value;  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;                }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;            }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;            &lt;span style="color:blue;"&gt;else&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;                _statCalculation = value;  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;        }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    &lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt; &lt;/span&gt;&lt;span style="color:blue;"&gt;enum&lt;/span&gt;&lt;span style="font-size:11px;"&gt; DieType  &lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    {  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;      &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    d4 = 4,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    d6 = 6,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    d8 = 8,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    d10 = 10,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    d12 = 12,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    d20 = 20,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    d99 = 99,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    d999 = 999,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;    MaxDie = 99,  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    HealMaxDie = 999  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;      &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;    }  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;}  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;
        &lt;/tr&gt;
    
&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The error is as follows:(*)&lt;br /&gt;
&lt;br /&gt;
The name &amp;quot;DieType&amp;quot; does not exist in the current context.&lt;br /&gt;
---&lt;br /&gt;
Expected class, delegate, enum, interface, or struct&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color:#0000ff;"&gt;public&lt;/span&gt; *Stat*()&lt;br /&gt;
&lt;span style="color:#0000ff;font-size:13px;"&gt;public&lt;/span&gt;&lt;span style="font-size:13px;"&gt; *Stat*(&lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;string&lt;/span&gt;&lt;span style="font-size:13px;"&gt; name)&lt;/span&gt;&lt;br /&gt;
&lt;span style="color:#0000ff;font-size:13px;"&gt;public&lt;/span&gt;&lt;span style="font-size:13px;"&gt; *StatType* Type&lt;br /&gt;
&lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;public&lt;/span&gt;&lt;span style="font-size:13px;"&gt; *&lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;string*&lt;/span&gt;&lt;span style="font-size:13px;"&gt; Name&lt;/span&gt;&lt;br /&gt;
&lt;span style="color:#0000ff;font-size:13px;"&gt;public&lt;/span&gt;&lt;span style="font-size:13px;"&gt; *&lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;string*&lt;/span&gt;&lt;span style="font-size:13px;"&gt; Abbreviation&lt;br /&gt;
&lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;public&lt;/span&gt;&lt;span style="font-size:13px;"&gt; *&lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;string*&lt;/span&gt;&lt;span style="font-size:13px;"&gt; Description&lt;br /&gt;
&lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;public&lt;/span&gt;&lt;span style="font-size:13px;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;font-size:13px;"&gt;string&lt;/span&gt;&lt;span style="font-size:13px;"&gt; StatCalculation&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Please help me out.&lt;br /&gt;
Thanks,&lt;br /&gt;
Trevor,&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Create A Bounding Box</title><link>http://forums.xna.com/forums/thread/162074.aspx</link><pubDate>Fri, 10 Apr 2009 16:18:29 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:162074</guid><dc:creator>funbob10</dc:creator><slash:comments>19</slash:comments><comments>http://forums.xna.com/forums/thread/162074.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=162074</wfw:commentRss><description>I am making a 3D game and I have ran into some trouble. my bounding box is working (I think) but ether the bounding box wont go around the box or the box isn&amp;#39;t checking for collisions, Please help.&lt;br /&gt;
&lt;br /&gt;
here is the code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="border:1px solid #7f9db9;overflow:auto;background-color:white;font-family:courier new;font-size:11px;"&gt;
&lt;table cellspacing="0" cellpadding="0" style="border-width:0px;border-bottom:0px solid #eeeeee;margin:2px 0px;width:99%;border-collapse:collapse;background-color:#ffffff;"&gt;
    
    
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="font-size:11px;"&gt;&lt;/span&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;BoundingBox&amp;nbsp;GetBoundingBoxFromModel(Model&amp;nbsp;model)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BoundingBox&amp;nbsp;boundingBox&amp;nbsp;=&amp;nbsp;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;BoundingBox();&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;foreach&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;(ModelMesh&amp;nbsp;mesh&amp;nbsp;&lt;/span&gt;&lt;span style="color:blue;"&gt;in&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;model.Meshes)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VertexPositionNormalTexture[]&amp;nbsp;vertices&amp;nbsp;=&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;VertexPositionNormalTexture[mesh.VertexBuffer.SizeInBytes&amp;nbsp;/&amp;nbsp;VertexPositionNormalTexture.SizeInBytes];&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mesh.VertexBuffer.GetData&amp;lt;VertexPositionNormalTexture&amp;gt;(vertices);&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vector3[]&amp;nbsp;vertexs&amp;nbsp;=&amp;nbsp;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;Vector3[vertices.Length];&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;for&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;index&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;index&amp;nbsp;&amp;lt;&amp;nbsp;vertexs.Length;&amp;nbsp;index++)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vertexs[index]&amp;nbsp;=&amp;nbsp;vertices[index].Position;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;boundingBox&amp;nbsp;=&amp;nbsp;BoundingBox.CreateMerged(boundingBox,&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BoundingBox.CreateFromPoints(vertexs));&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;return&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;boundingBox;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:blue;"&gt;void&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;UpdateBoundingBox(BoundingBox&amp;nbsp;box,&amp;nbsp;Vector3&amp;nbsp;position)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:green;"&gt;//&amp;nbsp;Get&amp;nbsp;the&amp;nbsp;Center&amp;nbsp;of&amp;nbsp;the&amp;nbsp;Box&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vector3&amp;nbsp;center&amp;nbsp;=&amp;nbsp;box.Max&amp;nbsp;-&amp;nbsp;box.Min;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:green;"&gt;//&amp;nbsp;Get&amp;nbsp;the&amp;nbsp;Offset&amp;nbsp;from&amp;nbsp;the&amp;nbsp;position&amp;nbsp;(center&amp;nbsp;of&amp;nbsp;model)&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vector3&amp;nbsp;offset&amp;nbsp;=&amp;nbsp;position&amp;nbsp;-&amp;nbsp;center;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:green;"&gt;//&amp;nbsp;Adjust&amp;nbsp;Box&amp;nbsp;to&amp;nbsp;match&amp;nbsp;model&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;box.Max&amp;nbsp;+=&amp;nbsp;offset;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;box.Min&amp;nbsp;+=&amp;nbsp;offset;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;}&amp;nbsp;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
    
&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
</description></item><item><title>msbuild dependency compile path</title><link>http://forums.xna.com/forums/thread/253446.aspx</link><pubDate>Fri, 20 Nov 2009 11:18:09 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253446</guid><dc:creator>fearlessdolphin</dc:creator><slash:comments>4</slash:comments><comments>http://forums.xna.com/forums/thread/253446.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253446</wfw:commentRss><description>The msbuild xnb compiler I have setup recursively goes through an asset folder and compiles xnbs in their respective folders, it even creates subfolders when necessary but when compiling dependencies it creates the xnb in the output path instead of placing them inside the model subfolder. In the end I get a bunch of files in the output root instead being in their respective folders. I have managed to get the content type of an xnb using the contentmanager which works quite nicely so I can store model and the depedency files in the same folder so determining the content type isn&amp;#39;t an issue.&lt;br /&gt;
&lt;br /&gt;
What would be even better if I could tell msbuild to create one xnb for all the dependency files. I did some digging in the ContentPipeline.xml which shows and output attribute for every asset but msbuild won&amp;#39;t let me modify the output path for builditems.&lt;br /&gt;
&lt;br /&gt;
I have downloaded shawn&amp;#39;s talk about Building Worlds in content pipline, just hadn&amp;#39;t had the time to go through it, its very late here and its hard to keep my eyes open!&amp;nbsp; I just hope I dont have to write a new content processor just to create one xnb or modify the dependency path!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Numbers on faces(NOOB)</title><link>http://forums.xna.com/forums/thread/253057.aspx</link><pubDate>Thu, 19 Nov 2009 15:05:40 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253057</guid><dc:creator>FuzzyDon</dc:creator><slash:comments>3</slash:comments><comments>http://forums.xna.com/forums/thread/253057.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253057</wfw:commentRss><description>Hi,&lt;br /&gt;
Im still new at the coding part of XNA and need some help. Can some one please try explain to me how to generate a number on a face of a tile but here is the catch. The number cannot be the same as other numbers in the same line or be duplicated within a square. Its for a sudoku game? &lt;br /&gt;</description></item><item><title>Entity - Component System : How to synchronize data used by multiple Components ?</title><link>http://forums.xna.com/forums/thread/253518.aspx</link><pubDate>Fri, 20 Nov 2009 15:37:08 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253518</guid><dc:creator>MrBubbas</dc:creator><slash:comments>1</slash:comments><comments>http://forums.xna.com/forums/thread/253518.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253518</wfw:commentRss><description>Hi all,&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m podering over the design of a Component based Entity System. Suppose the following:&lt;br /&gt;
&lt;br /&gt;
Entity: A class with a list of Components&lt;br /&gt;
Component: A class with data describing a certain behaviour. &lt;br /&gt;
Subsystem: A class handling a specific type of component, e.g. updating the state of a certain type of Component on each update.&lt;br /&gt;
&lt;br /&gt;
The enitites registers its components to their corresponding subsystem. The subsystems are responsible&lt;br /&gt;
for handling the logic for each component type. &lt;br /&gt;
&lt;br /&gt;
As an example, an Entity describing a box would contain the following components:&lt;br /&gt;
&lt;br /&gt;
RenderableComponent (the geometry of the box)&lt;br /&gt;
PhysicalComponent (the physical attributes of the box; mass, intertia etc)&lt;br /&gt;
&lt;br /&gt;
And the corresponding Subsystems would be:&lt;br /&gt;
RenderSystem (uses the data in the RenderableComponent to draw the box)&lt;br /&gt;
PhysicsSystem  (uses the data in the PhysicalComponent to simulate the pysical state of the box. )&lt;br /&gt;
&lt;br /&gt;
Now, both of these components will need the position of the box. In my opinion there are three possible solutions &lt;br /&gt;
to this:&lt;br /&gt;
&lt;br /&gt;
1) Let the Entity hold the position data.&lt;br /&gt;
2) Let each Component hold a complete set of needed data. (in this case both components hold the position.)&lt;br /&gt;
3) Create a SpatialComponent holding the position information.&lt;br /&gt;
&lt;br /&gt;
For all these options there is a main problem:&lt;br /&gt;
1) Who (what component) is allowed to set the position?&lt;br /&gt;
2) Who (what component) is considered to hold the correct position? &lt;br /&gt;
3) Who (what component) is considered to hold the correct position so that the SpatialComponent can get it?&lt;br /&gt;
&lt;br /&gt;
In this example it may be a bit obvious that it would be the PhyscialComponent, but in the case where there are other Components also affecting the position.&lt;br /&gt;
&lt;br /&gt;
On each update (after all subsystems have updated their components) there has to be a synchronization call to each Entity where the Components can read data from each other&lt;br /&gt;
and update their own internal data state. &lt;br /&gt;
&lt;br /&gt;
So, how to determine what Component holds the correct postion or what Components shall combine to set the correct position???&lt;br /&gt;
&lt;br /&gt;
Any ideas anyone?&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
Mr Bubbbas&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Leaving everything for the same spritebatch?</title><link>http://forums.xna.com/forums/thread/253360.aspx</link><pubDate>Fri, 20 Nov 2009 03:46:37 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253360</guid><dc:creator>Scylla</dc:creator><slash:comments>2</slash:comments><comments>http://forums.xna.com/forums/thread/253360.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253360</wfw:commentRss><description>Is it a good idea to have a single spritebatch instance draw everything?&lt;br /&gt;
I&amp;#39;m literally drawing everything with a single spritebatch (about 50 things at a time).&lt;br /&gt;</description></item><item><title>HELP ME WITH IDEA</title><link>http://forums.xna.com/forums/thread/253331.aspx</link><pubDate>Fri, 20 Nov 2009 02:05:51 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253331</guid><dc:creator>Colby Orgeron</dc:creator><slash:comments>2</slash:comments><comments>http://forums.xna.com/forums/thread/253331.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253331</wfw:commentRss><description>okay so i have a great idea for a game but i cant make  it im looking for someone to help me if instrested inite me CS colbyj617 to a party on live</description></item><item><title>Need help with a Collectible Card Game (CCG)</title><link>http://forums.xna.com/forums/thread/252915.aspx</link><pubDate>Thu, 19 Nov 2009 03:15:45 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252915</guid><dc:creator>dongitude</dc:creator><slash:comments>5</slash:comments><comments>http://forums.xna.com/forums/thread/252915.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252915</wfw:commentRss><description>I&amp;#39;m making a CCG and I&amp;#39;m not sure what would be the smartest design when it comes to the powers on the cards.&amp;nbsp; I have a Player class that has access to all in-game objects.&amp;nbsp; I also have a Card class that is only aware of itself.&amp;nbsp; Cards have powers or effects that can affect other objects but I don&amp;#39;t want to have to pass in a ton of objects to each Card.&amp;nbsp; I&amp;#39;d like for the Player class to actually do the &amp;#39;heavy lifting&amp;#39; and the Card class can remain simple and dumb.&amp;nbsp; If each card had a string consisting of C# code that the Player class could read and execute then that&amp;#39;d be perfect.&amp;nbsp; Or, if each Card could just have a block of code that the Player would execute...&lt;br /&gt;
&lt;br /&gt;
For an example of some cards, a &amp;#39;Knight&amp;#39; card might do damage to an opponent player.&amp;nbsp; A &amp;#39;Buff&amp;#39; card might boost the attack power of another card.&amp;nbsp; A &amp;#39;Crystal Ball&amp;#39; card might allow a player to view another player&amp;#39;s hand.&lt;br /&gt;
&lt;br /&gt;
I was thinking, maybe I could use the Command design pattern and have the Card class pass a Command object to the Player and the Player (with its widespread access) could then execute the Command?&amp;nbsp; Or, should I set the Player class as a Singleton so that each card can access the Player&amp;#39;s members?&amp;nbsp; Or, should I just pass every in-game object into the Card and have widespread entanglement and ugly-but-working code?&amp;nbsp; Basically, I don&amp;#39;t want each Card to have global awareness.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;</description></item><item><title>Remember me?  Well, I found something.</title><link>http://forums.xna.com/forums/thread/253259.aspx</link><pubDate>Thu, 19 Nov 2009 23:07:01 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:253259</guid><dc:creator>POKEMONMASTER260</dc:creator><slash:comments>4</slash:comments><comments>http://forums.xna.com/forums/thread/253259.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=253259</wfw:commentRss><description>Okay, some of you might remember that a while back I desperately tried to find a way to use .swf files in XNA games, to no avail.  (There was Fluix, but that never worked for me &amp;amp; the support wasn&amp;#39;t good.)&lt;br /&gt;
&lt;br /&gt;
...So, a few seconds ago or something, I was a tiny bit curious as to whether or not they&amp;#39;ve done something about it yet.  I&amp;#39;m pretty sure this video was made long after my previous efforts, well...&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.youtube.com/watch?v=qBwDCg62S8Q"&gt;http://www.youtube.com/watch?v=qBwDCg62S8Q&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Intriguing?&lt;br /&gt;
&lt;br /&gt;
-PM260</description></item><item><title>Camera and rectangle issues with a platformer game</title><link>http://forums.xna.com/forums/thread/248363.aspx</link><pubDate>Fri, 06 Nov 2009 15:48:39 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:248363</guid><dc:creator>Kalle Loof</dc:creator><slash:comments>6</slash:comments><comments>http://forums.xna.com/forums/thread/248363.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=248363</wfw:commentRss><description>&lt;span style="-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;white-space:pre-wrap;font-family:verdana, tahoma, arial, sans-serif;font-size:11px;color:#000000;"&gt;You may recognize the &amp;quot;character&amp;quot; model from the xna 3d starter tutorial, I haven&amp;#39;t gotten very far yet so I&amp;#39;m just using it as a placeholder for now. The game is pretty much 2D, but uses a 3D model for the character, rectangles are used for collision since the terrain is all sprites (I honestly have no idea if a model with oriented bounding boxes can collide with rectangle-based terrain at all, but I digress). I&amp;#39;m new to cameras and 3D in general so matrices and whatnot is still quite confusing, so I&amp;#39;ve pretty much copy-pasted the camera and model-drawing code for now, and not surprisingly they&amp;#39;re giving me some trouble. Drawing the character model at any other Z-coordinate than 0 makes it overly complicated to make the hitbox rectangles stick to the character, so I&amp;#39;d prefer to draw it at 0 if at all possible, however, the current copy-pasted camera isn&amp;#39;t exactly agreeable. This is the camera code.&lt;div style="overflow-x:auto;overflow-y:auto;background-color:white;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:#7f9db9;border-right-color:#7f9db9;border-bottom-color:#7f9db9;border-left-color:#7f9db9;font-family:&amp;#39;courier new&amp;#39;;font-size:11px;"&gt;&lt;table cellpadding="0" cellspacing="0" style="width:99%;margin-top:2px;margin-right:0px;margin-bottom:2px;margin-left:0px;border-collapse:collapse;border-bottom-style:solid;border-bottom-color:#eeeeee;background-color:#ffffff;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;"&gt;                &lt;tr&gt;            &lt;td&gt;&lt;span style="font-size:11px;"&gt;cameraProjectionMatrix = Matrix.CreatePerspectiveFieldOfView( &lt;/span&gt;&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td style="background-color:#f7f7f7;"&gt;                MathHelper.ToRadians(45.0f), &lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td&gt;                graphics.GraphicsDevice.Viewport.AspectRatio, &lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td style="background-color:#f7f7f7;"&gt;                1.0f, &lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td&gt;                10000.0f); &lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td style="background-color:#f7f7f7;"&gt; &lt;/td&gt;        &lt;/tr&gt;    &lt;/table&gt;&lt;/div&gt;The 45° float gives me trouble because the further the character goes away from the middle of the screen, the more angled the character (in this case a ufo, as mentioned earlier) becomes. (&lt;a href="http://i34.tinypic.com/2qwmwc4.png" target="_blank" title="http://i34.tinypic.com/2qwmwc4.png"&gt;Example 1&lt;/a&gt;, &lt;a href="http://i33.tinypic.com/2nlagew.png" target="_blank" title="http://i33.tinypic.com/2nlagew.png"&gt;Example 2&lt;/a&gt;). Changing the 45° float to 1° fixes this issue, but forces me to scale the model to a ridiculously low scale (about 0.0001f, if I recall correctly) and also makes the model look quite bad, as the resolution of it is pretty low.As you can see on the screenshots, there&amp;#39;s a little box in the upper left corner, that&amp;#39;s my rectangle hitbox. As you can also see, it is unfortunately nowhere near the model itself. The main reason for this is (again, I may or may not be right, as I&amp;#39;m pretty new to 3D) that the position of the rectangle is an integer while the position of the model is a Vector3 (that is, floats).This is how the position of the hitbox is decided...&lt;/span&gt;&lt;div&gt;&lt;span style="-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;white-space:pre-wrap;font-family:verdana, tahoma, arial, sans-serif;font-size:11px;color:#000000;"&gt;&lt;div style="overflow-x:auto;overflow-y:auto;background-color:white;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:#7f9db9;border-right-color:#7f9db9;border-bottom-color:#7f9db9;border-left-color:#7f9db9;font-family:&amp;#39;courier new&amp;#39;;font-size:11px;"&gt;&lt;table cellpadding="0" cellspacing="0" style="width:99%;margin-top:2px;margin-right:0px;margin-bottom:2px;margin-left:0px;border-collapse:collapse;border-bottom-style:solid;border-bottom-color:#eeeeee;background-color:#ffffff;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;"&gt;                &lt;tr&gt;            &lt;td&gt;&lt;span style="font-size:11px;"&gt;characterhitboxposition = &lt;/span&gt;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt; Rectangle((&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;)Character.position.X, (&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;)Character.position.Y, 82, 72); &lt;/span&gt;&lt;/td&gt;        &lt;/tr&gt;    &lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;white-space:pre-wrap;font-family:verdana, tahoma, arial, sans-serif;font-size:11px;color:#000000;"&gt;...and this is how it is updated.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;white-space:pre-wrap;font-family:verdana, tahoma, arial, sans-serif;font-size:11px;color:#000000;"&gt;&lt;div style="overflow-x:auto;overflow-y:auto;background-color:white;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:#7f9db9;border-right-color:#7f9db9;border-bottom-color:#7f9db9;border-left-color:#7f9db9;font-family:&amp;#39;courier new&amp;#39;;font-size:11px;"&gt;&lt;table cellpadding="0" cellspacing="0" style="width:99%;margin-top:2px;margin-right:0px;margin-bottom:2px;margin-left:0px;border-collapse:collapse;border-bottom-style:solid;border-bottom-color:#eeeeee;background-color:#ffffff;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;"&gt;                &lt;tr&gt;            &lt;td&gt;&lt;span style="font-size:11px;"&gt;characterhitboxposition.X = (&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;)Character.position.X; &lt;/span&gt;&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;            &lt;td style="background-color:#f7f7f7;"&gt;            characterhitboxposition.Y = (&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;)Character.position.Y; &lt;/span&gt;&lt;/td&gt;        &lt;/tr&gt;    &lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre;-webkit-border-horizontal-spacing:1px;-webkit-border-vertical-spacing:1px;font-family:verdana, tahoma, arial, sans-serif;font-size:11px;color:#000000;"&gt;&lt;span style="white-space:pre-wrap;"&gt;When the degree float related to the camera that I mentioned earlier is set to 1° the hitbox barely moves at all when I move the model, since the model is so tiny and has to move very slowly to even stay on screen for more than half a second. If the float is 45° it moves noticably faster, but still nowhere near as fast as the model, itself, and well...it&amp;#39;s still in the corner.Thanks in advance if anyone knows how to fix these issues.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</description></item><item><title>super noob!</title><link>http://forums.xna.com/forums/thread/251843.aspx</link><pubDate>Mon, 16 Nov 2009 04:12:40 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:251843</guid><dc:creator>zcool888</dc:creator><slash:comments>5</slash:comments><comments>http://forums.xna.com/forums/thread/251843.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=251843</wfw:commentRss><description>I am VERY sorry to bother, but if someone could tell me how to make an image move in a direction, it would be fantastic.&lt;br /&gt;
&lt;br /&gt;
all I have up till now is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
private void KeyboardInput()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KeyboardState keybState = Keyboard.GetState();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (keybState.IsKeyDown(Keys.Up))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bluepaddle.new Vector2.Y(-1);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (keybState.IsKeyDown(Keys.Down))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; redpaddle.new Vector2.Y(+1)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
which I know is COMPLETELY wrong :(&lt;br /&gt;</description></item><item><title>Game1.cs file got deleted???????????</title><link>http://forums.xna.com/forums/thread/252934.aspx</link><pubDate>Thu, 19 Nov 2009 04:45:18 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252934</guid><dc:creator>Scylla</dc:creator><slash:comments>6</slash:comments><comments>http://forums.xna.com/forums/thread/252934.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252934</wfw:commentRss><description>What the hell!????&lt;br /&gt;
I was just using Visual Studio, I saved as normally, and then for some reason a save window popped up.&lt;br /&gt;
I pressed &amp;#39;Save&amp;#39; and it said: &amp;quot;Unable to save. Access Denied.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I then stupidly closed the file in visual studio, looked for it in the directory, and it was gone!!!!!!!!&lt;br /&gt;
&lt;br /&gt;
Is there ANY way to get it back? I still have other files like my class file I used and everything else.&lt;br /&gt;
How do I get it back? Really???&lt;br /&gt;</description></item><item><title>Problem with the getting started 2D tutorial</title><link>http://forums.xna.com/forums/thread/252771.aspx</link><pubDate>Wed, 18 Nov 2009 17:51:58 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252771</guid><dc:creator>Bradalee21</dc:creator><slash:comments>6</slash:comments><comments>http://forums.xna.com/forums/thread/252771.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252771</wfw:commentRss><description>Hey,&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;ve followed the tutorial to the letter and i keep getting this error &lt;br /&gt;
&lt;br /&gt;
&amp;quot;Error 1 The name &amp;#39;cannon&amp;#39; does not exist in the current context C:\Users\HOME USER\Desktop\XNA\BG_2D_Chapter4\Game1.cs 92 13 BG_2D_Chapter4_Win&amp;quot;&lt;br /&gt;
&lt;br /&gt;
the 92 and 13 refer tot he colums/rows and theres 5 of them in total. So im very confused! Any help would be greatly appreciated!&lt;br /&gt;
&lt;br /&gt;
Cheers :D&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Compilation of Game Mechanics</title><link>http://forums.xna.com/forums/thread/249997.aspx</link><pubDate>Wed, 11 Nov 2009 03:30:11 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:249997</guid><dc:creator>reedake2</dc:creator><slash:comments>7</slash:comments><comments>http://forums.xna.com/forums/thread/249997.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=249997</wfw:commentRss><description>I have a small gap in my game that requires some sort of skill based mechanic to fill the hole. I&amp;#39;ve been thinking lately about other games and what mechanics would work well in mine. What I mean by &amp;quot;mecanics&amp;quot; are things like;&lt;br /&gt;
&lt;br /&gt;
hitting a button at the right time to dodge, or&lt;br /&gt;
&lt;br /&gt;
running and collecting (whatever) for a bonus, or&lt;br /&gt;
&lt;br /&gt;
sliding the blocks into the right places to allow the character to escape,&lt;br /&gt;
&lt;br /&gt;
etc, etc&lt;br /&gt;
&lt;br /&gt;
Oviously these 3 are all very different, and would fall under different categories, some are more thinking orientated, others are more dexterity/reflex oriented. I was thinking it would be awesome to have like a large compilation of different game mechanics that designers could use as a starting point, or inspiration for filling in the gaps in their design. &lt;br /&gt;
&lt;br /&gt;
A list like this could even be used for inspiration for new types of games by combining different mechanics together in new ways. Eg what kind of game could I get if I combined a resource management mechanic with a balancing (staying up-right) mechanic?&lt;br /&gt;
&lt;br /&gt;
Does anyone know of a list like this? If there&amp;#39;s nothing available, would anyone be interested in helping me compile one?&lt;br /&gt;
&lt;a href="http://forums.xna.com/forums/AddPost.aspx?ForumID=44"&gt;&lt;/a&gt;</description></item><item><title>Array Not Working</title><link>http://forums.xna.com/forums/thread/252924.aspx</link><pubDate>Thu, 19 Nov 2009 03:57:04 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252924</guid><dc:creator>Scylla</dc:creator><slash:comments>1</slash:comments><comments>http://forums.xna.com/forums/thread/252924.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252924</wfw:commentRss><description>I&amp;#39;ve got this array:&lt;br /&gt;
&lt;div style="border:1px solid #7f9db9;overflow:auto;background-color:white;font-family:courier new;font-size:11px;"&gt;
&lt;table cellspacing="0" cellpadding="0" style="border-width:0px;border-bottom:0px solid #eeeeee;margin:2px 0px;width:99%;border-collapse:collapse;background-color:#ffffff;"&gt;
    
    
        &lt;tr&gt;
            &lt;td&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;myType&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;[,]&amp;nbsp;pos&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;[3, 1];&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;numb&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;formation&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;switch&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;(formation)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;case&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;1:&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myType&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[0,&amp;nbsp;0]&amp;nbsp;=&amp;nbsp;16;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[0,&amp;nbsp;1]&amp;nbsp;=&amp;nbsp;-48;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[1,&amp;nbsp;0]&amp;nbsp;=&amp;nbsp;64;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[1,&amp;nbsp;1]&amp;nbsp;=&amp;nbsp;-32;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[2,&amp;nbsp;0]&amp;nbsp;=&amp;nbsp;144;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[2,&amp;nbsp;1]&amp;nbsp;=&amp;nbsp;-32;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[3,&amp;nbsp;0]&amp;nbsp;=&amp;nbsp;144;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pos[3,&amp;nbsp;1]&amp;nbsp;=&amp;nbsp;-48;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;numb&amp;nbsp;=&amp;nbsp;5;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;break&lt;/span&gt;&lt;span style="font-size:11px;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;case&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;2:&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myType&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;numb&amp;nbsp;=&amp;nbsp;4;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;break&lt;/span&gt;&lt;span style="font-size:11px;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;case&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;3:&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myType&amp;nbsp;=&amp;nbsp;1;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;numb&amp;nbsp;=&amp;nbsp;5;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;break&lt;/span&gt;&lt;span style="font-size:11px;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;for&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;(&lt;/span&gt;&lt;span style="color:blue;"&gt;int&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;nbsp;&amp;lt;&amp;nbsp;numb;&amp;nbsp;i++)&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;GameObject&amp;nbsp;ship&amp;nbsp;=&amp;nbsp;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;GameObject(Content.Load&amp;lt;Texture2D&amp;gt;(&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;quot;en&amp;quot;&lt;/span&gt;&lt;span style="font-size:11px;"&gt;&amp;nbsp;+&amp;nbsp;myType.ToString()));&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ship.X&amp;nbsp;=&amp;nbsp;pos[i,&amp;nbsp;0];&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ship.Y&amp;nbsp;=&amp;nbsp;pos[i,&amp;nbsp;1];&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td style="background-color:#f7f7f7;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ships.Add(ship);&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/td&gt;
        &lt;/tr&gt;
    
&lt;/table&gt;
&lt;/div&gt;
This code (inside a void function) gets run each time I press space.&lt;br /&gt;
When I press space my game freezes and Visual Studio goes to the line:&amp;nbsp;pos[0, 1] = -48; &amp;nbsp; and highlights it in yellow, and throws this error:&lt;br /&gt;
&amp;quot;Index was outside the bounds of the array.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
???&lt;br /&gt;</description></item><item><title>Exporting a 3D Model with animations from 3DS Max to be used in an XNA 3.1 game</title><link>http://forums.xna.com/forums/thread/252576.aspx</link><pubDate>Wed, 18 Nov 2009 00:23:54 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252576</guid><dc:creator>MasterGunz67</dc:creator><slash:comments>2</slash:comments><comments>http://forums.xna.com/forums/thread/252576.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252576</wfw:commentRss><description>Hello, I am having trouble exporting a 3D model with a bone rig and animation to be used in an XNA 3.1 game.&lt;br /&gt;
&lt;br /&gt;
Some of my questions include:&lt;br /&gt;
        - Should my model be a single mesh with just a skin modifyer with the bones or separate parts that can move?&lt;br /&gt;
        - Are there any special settings to use in the exporter that would have any effect on the models animation?&lt;br /&gt;
        - Is each animation exported as a separate file with its own name?&lt;br /&gt;
        - How are these animations then called in the game?&lt;br /&gt;
                - Do I have to manually manage the keyframes?&lt;br /&gt;
&lt;br /&gt;
I am using 3DS Max 2009 and Visual Studio 2008 with XNA 3.1 installed, exporting using the .fbx format.  Any help that you can provide would be greatly appreciated.  Thank you.</description></item><item><title>Moving and jumping at the same time...</title><link>http://forums.xna.com/forums/thread/250198.aspx</link><pubDate>Wed, 11 Nov 2009 16:12:55 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:250198</guid><dc:creator>s7evin</dc:creator><slash:comments>6</slash:comments><comments>http://forums.xna.com/forums/thread/250198.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=250198</wfw:commentRss><description>Hello, I&amp;#39;m new in the game&amp;#39;s programming world. &lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m having some problems when I&amp;#39;m trying to jump and move at the same time; when I press keys.up + keys.left + keys.space (jump&amp;#39;s key), jump doesn&amp;#39;t work; nevertheless, if I press any other one combination of keys where appears kyes.up, jump works perfectly. &lt;br /&gt;
&lt;br /&gt;
Any idea how to fix it? Thanks!&lt;br /&gt;
&lt;br /&gt;
(Sorry for my really bad english. I hope that you can understand what I&amp;#39;ve wanted to say)&lt;br /&gt;
&lt;br /&gt;</description></item><item><title>Make a sprite face the mouse</title><link>http://forums.xna.com/forums/thread/251531.aspx</link><pubDate>Sun, 15 Nov 2009 04:11:30 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:251531</guid><dc:creator>TheHomicidal</dc:creator><slash:comments>7</slash:comments><comments>http://forums.xna.com/forums/thread/251531.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=251531</wfw:commentRss><description>Howdy,&lt;br /&gt;
Me and a friend have this idea to make a top-down horror game... thing...&lt;br /&gt;
&lt;br /&gt;
Anyway, I want to make the sprite face the mouse if that makes sense. If it doesn&amp;#39;t, like it does in this: &lt;a href="http://www.mojang.com/notch/j4k/l4kd/" target="_blank"&gt;Left 4K Dead&lt;/a&gt;. I have no idea as to how I&amp;#39;d go about doing that though... Any help would be great.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Homicidal</description></item><item><title>game window size</title><link>http://forums.xna.com/forums/thread/252552.aspx</link><pubDate>Tue, 17 Nov 2009 23:33:09 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252552</guid><dc:creator>daGman</dc:creator><slash:comments>2</slash:comments><comments>http://forums.xna.com/forums/thread/252552.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252552</wfw:commentRss><description>how do i set the size of the game window?</description></item><item><title>Getting started 2d TUTORIAL </title><link>http://forums.xna.com/forums/thread/252207.aspx</link><pubDate>Tue, 17 Nov 2009 01:13:27 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252207</guid><dc:creator>northcutt1023</dc:creator><slash:comments>3</slash:comments><comments>http://forums.xna.com/forums/thread/252207.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252207</wfw:commentRss><description>I get to the end of chapter 6.6 and i checked for errors and i got 1, syntax error, &amp;#39;(&amp;#39; as expected so i downloaded the XNA source and i got the same error im a total begginer so please help.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)&lt;/div&gt;&lt;div&gt;                this.Exit();&lt;/div&gt;&lt;div&gt;            GamePadState gamePadState = GamePad.GetState(PlayerIndex.One);&lt;/div&gt;&lt;div&gt;            cannon.rotation += gamePadState.ThumbSticks.Left.X * 0.1f;&lt;/div&gt;&lt;div&gt;            gamePadState.Buttons.A == ButtonState.Pressed &amp;amp;&amp;amp;&lt;/div&gt;&lt;div&gt;                previousGamePadState.Buttons.A == ButtonState.Released;&lt;/div&gt;&lt;div&gt;            {&lt;/div&gt;&lt;div&gt;                FireCannonBall();&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;            if &lt;strong&gt;keyboardState&lt;/strong&gt;.IsKeyDown(Keys.Space) &amp;amp;&amp;amp;&lt;/div&gt;&lt;div&gt;                previousKeyboardState.IsKeyUp(Keys.Space))&lt;/div&gt;&lt;div&gt;            { &lt;/div&gt;&lt;div&gt;                FireCannonBall();&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;#if !XBOX&lt;/div&gt;&lt;div&gt;                KeyboardState keyboardState = Keyboard.GetState();&lt;/div&gt;&lt;div&gt;            if(keyboardState.IsKeyDown(Keys.Left))&lt;/div&gt;&lt;div&gt;            {cannon.rotation-=0.1f;&lt;/div&gt;&lt;div&gt;            }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;(the bolds the problem)&lt;/div&gt;&lt;/div&gt;</description></item><item><title>High score table</title><link>http://forums.xna.com/forums/thread/252139.aspx</link><pubDate>Mon, 16 Nov 2009 22:20:22 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:252139</guid><dc:creator>Pugnap00</dc:creator><slash:comments>4</slash:comments><comments>http://forums.xna.com/forums/thread/252139.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=44&amp;PostID=252139</wfw:commentRss><description>Im really sorry if these topic has been beaten to death, but my search of the forums hasent been very successful (so yes, i do use the search lol)&lt;br /&gt;
&lt;br /&gt;
I basically want to be able to store global (or even local - which ever is easier) high scores for my game. Can anyone gives me some good links or info on how to save high scores? Is global high scoring even possible atm?</description></item></channel></rss>