Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Drakken255

Member Since 14 Oct 2010
Offline Last Active Dec 27 2012 12:30 AM

Posts I've Made

In Topic: [XNA] Model Renders Black

21 October 2012 - 04:06 PM

Lost contact with the user above. Thus, I still am looking for someone to do this.

In Topic: Logo feedback - Ninja Cat and Zombie Dinosaurs

20 October 2012 - 04:51 AM

I think what Daaark is saying is a game logo is not going to be good with just a text layer. You need to manually DRAW the text to give it more style. Make a logo focusing solely on Ninja Cat, then it's safe to add "VS. Zombie Dinosaurs" as a subtitle. I suggest a cat in the background, also manually drawn. Maybe with a sword splitting a letter in half? It all boils down to originality. Give it your own touch. Don't use pre-made graphics, not even fonts. Not unless it fits perfectly, and you have the creator's permission.

In Topic: Settings File and Compatibility

18 October 2012 - 06:58 PM

So the following should work:

int oldLength = settings.Length;
if (settings.Length < numberOfBoxes)
{
   Array.Resize(ref settings, numberOfBoxes);

   for (int i = oldLength; i < settings.Length; i++)
   {
	  settings[i] = "false";
   }
}

And then each time settings change I just modify the constant numberOfBoxes?
As it is I'm not yet comfortable with XML serialization. I currently use manual data storage with File.WriteAllLines(). I'm assuming it's a much better way to go in this situation?

EDIT: I seem to have found a solution involving a Checked List Box. I didn't want to make a separate file out of it, but oh well. When saving, I save with:

List<string> checkedItems = new List<string>();

foreach (object checkedBox in checkBoxList.CheckedItems)
{
   checkedItems.Add(checkedBox.ToString());
}

File.WriteAllLines(<FILE>, checkedItems.ToArray<string>());

And Load with:

List<string> checkedItems = new List<string>();
checkedItems.AddRange(File.ReadAllLines(<FILE>));

for (int i = 0; i < checkBoxList.Items.Count; i++)
{
   if (checkedItems.Contains(checkBoxList.Items[i].ToString())
   {
	  checkBoxList.SetItemChecked(i, true);
   }
}

In Topic: Blender to XNA: Skinned Model Renders Black

18 September 2012 - 09:59 PM

Thanks. Will try after work and edit with results.

EDIT: Setting the pre-multiply alpha setting on either the model or the texture didn't work...
Not even removing all transparency options in Blender works...

In Topic: Blender to XNA: Skinned Model Renders Black

18 September 2012 - 07:40 PM

Ok, how do I turn this off?

PARTNERS