Hello, Sorry that my first post is asking for help. I was hoping my first one was going to be me releasing a game. Sad day. Anyway, I keep getting this error:
Code:
error CS1061: 'Microsoft.Xna.Framework.Input.TouchLocation' does not contain a definition for 'Positon' and no extension method 'Positon' accepting a first argument of type 'Microsoft.Xna.Framework.Input.TouchLocation' could be found (are you missing a using directive or an assembly reference?)
It seems silly that TouchLocation wouldn't have a Position. So, I looked it up on the msdn site and in the definition for TouchLocation, it does indeed, have a Position definition. This baffles me.
I do have
Code:
using Microsoft.Xna.Framework.Input;
I did lots of looking around and I can't find any information on this (i did try searching and didn't see anything except somebody said "Upgrade Solution" for something similar and I can't find that option anywhere)
Anyway I've been doing a lot of Java programming recently and decided I wanted to take a shot at something for the Zune since it's "dead" now I want to be part of what keeps it "alive" longer. But, until I can get the position of where people touch there's not a ton I can do :x
Code:
example:
TouchCollection touchCollection = TouchPanel.GetState();
foreach( TouchLocation t1 in touchCollection)
{
if (t1.Position.X >= 31 && t1.Position.Y <= 60)
{
//do some stuff
}
}
Thanks for your help and sorry for wasting your time if it's something I did stupid
So, I may, just maybe have, typed "Position" here and "Positon" in my code. I apologize can somebody lock :x.
I may have been doing too much coding in the last few weeks