Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 477983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:38:45+00:00 2026-05-13T00:38:45+00:00

Firstly I know coordinates is probably the wrong terminology? I’d assume i’d simply be

  • 0

Firstly I know coordinates is probably the wrong terminology? I’d assume i’d simply be passing the x and y variables, but coordinates describe it better I feel.

Now I need to have a Server which can be accessed by 2 clients, it is a racing game and it requires each client to be able to maneuver a racecar simultaniously, each using a different control scheme but that’s neither here nor there.

I was hoping someone would be able to assist me when it came to sending the x and y positions of a racecar to the server and having the server send them onto the next player and vice versa to allow both racecars to move at the same time on each clients window. So far i’ve only done the simple server stuff, such as the knock knock server on the sun website, and a simple echo server which repeats a string I send to the server.

When I tried to use int instead of string I recieved an error that the int I wanted to pass was dynamic (obviously changes with each movement) and cannot be passed as static (using readInt and writeInt).

So any help on how to create the wanted movement on both client windows through the server would be appreciated.

Thanks

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:38:45+00:00Added an answer on May 13, 2026 at 12:38 am

    A simple solution is to use ObjectOutputStream with serializable objects:

    class Coordinates implements Serializable{...}
    
    ObjectOutputStream out = new ObjectOutputStream(...);
    out.writeObject(new Coordinates(...));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, I feel sorry about the title, I do not know how to describe
Firstly, I know that writing a class to disk is bad, but you should
Firstly, I know that CSS expressions are defunct and wrong in so many ways,
Firstly, I hate to be a pain but I'd like to know how to
I don't know what is wrong here. Firstly It is Winforms application using .net
Firstly I know that there are many question and solutions to correct thread marshalling
You know firstly Entity Framework came with Visual Studio 2008 SP1. Now it is
Firstly, I know this [type of] question is frequently asked, so let me preface
Firstly, I am somewhat new with Hibernate. To get to know the technology I
I know there is a way to retrieve the coordinates by clicking on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.