Original Post
I'm getting two null values with my code, both of them happen inside PlayerInput.cs
Basically i have a ball bouncing around a screen and when you click on it, it's suppose to move the ball to a new location and start moving again and increase the score by 1.
if you hit escape it's suppose to exit the game.
both of these are built into it's own file called PlayerInput
Now the values are not null but once i click on the game (anywhere) it becomes null and crashes.
and if i hit escape it becomes null and crashes.
I have not attached the source because it's long.
however have links you can goto.
http://mmo-dev.net/Game1.cs
http://mmo-dev.net/Sprite.cs
http://mmo-dev.net/PlayerInput.cs
will show you the code for the game.
any help would be great.
Basically i have a ball bouncing around a screen and when you click on it, it's suppose to move the ball to a new location and start moving again and increase the score by 1.
if you hit escape it's suppose to exit the game.
both of these are built into it's own file called PlayerInput
Now the values are not null but once i click on the game (anywhere) it becomes null and crashes.
and if i hit escape it becomes null and crashes.
I have not attached the source because it's long.
however have links you can goto.
http://mmo-dev.net/Game1.cs
http://mmo-dev.net/Sprite.cs
http://mmo-dev.net/PlayerInput.cs
will show you the code for the game.
any help would be great.