Why am I getting a return value of zero from my position computation function?
- by Hussain Murtaza
Ok I have a Function int x(), which is used in
new Rectangle(x(),a,a,a);
in DrawMethod in XNA
but when I use it I get x() = 0 as as the answer.Here is my CODE:
int x()
{
int px = (128 * 5);
int xx = 0;
for (int i = 0; i < 6; i++)
{
if (Mouse.GetState().X > px)
…