Network game.. how to move?

I will try to make a simple game(GUI) with network.

And My first test will be to move an object from x1 toward x2.

this is an example.

CharacterObj.x1 = 100(px); // this is current x pos.

sendData(200); // I want to move object toward 200.

I want to move the obj like,

100 -> 110 -> 120 -> 130...

How to implement that?


sendData( CharacterObj.x1 + 10 );
Topic archived. No new replies allowed.