This week's book giveaway is in the Agile forum.
We're giving away four copies of Fixing your Scrum and have Ryan Ripley & Todd Miller on-line!
See this thread for details.
Win a copy of Fixing your Scrum this week in the Agile forum!

Jeffrey Bowles

Greenhorn
+ Follow
since Mar 01, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jeffrey Bowles

The code itself works as it is now but if i try and take a variable say to transfer player positions i get a error of

"non static variable X cannot be referenced from a static context"

that is on line 98 that i get that error so how do i get rid of that error. The reason i want to this is so i can transfer a players position to another computer on a network running the client code. (which is basically the same) Then draw the player on the map so it can be a networked 2 player game. here is just that code again



The error comes at the line
pw.println("X:"+X );
The X is to transfer the X coords of the player

Thanks
12 years ago
This code is to transfer the X and Y coords of the player to a different computer so i can make a networking adventure code but the networking method is static so i can send the X and Y coords from it. I have tried to remove the static from the method it does not work so i am posting it here. (this is only the server code it will not run proberly if you try and compile it on your comp i just need help how to get the X and Y coords into the networking method)




Any help on this would be great
12 years ago