Hi, im getting this error…
Exception: java.io.NotSerializableException:
…when i try to use the “writeObject(obj)” method. As far as i can make out from what ive read on the net, i need to do soemthing to do with Serialization for the readObject() and writeObject methods but im not sure what.
i think the problem is the fact that im using the readObject() and writeObject() methods in the wrong way. I was trying to use them to send data (a Sprite object) but im starting to think thats not what they are for, or else im using them arseways.
What methods can i use to send an object as a packet between the client and server? Any simple code example?
thanks.