hi, i got a question,
i know how to create a character with a control characterControl, i got a simple game that runs everything pretty good,
but i got a big problem on wich is the “good way” to do it via spider monkey.
i got some choices but dont know wich one is correct here there are
1.-make the client read the inputs(left, right, up, down)
-send a message to the server with string(left,right…,and actual position)
-on the server (read the input from message and calculate the vectors walkdirection movedirection)
-broadcast this info to all the clients
2-make the client read the inputs(left, right, up, down)
-on the client calculate the vectors walkdirection movedirection
-send new position to the server
-broadcast new position from server to all players
i dont rly think any of those methods is pretty good, i dont realy understand this… cos if i only work with positions, a client will only be able to see himself animations, not other clients animations, and in the first method, could make a player to press buttons and see actions happening half of second later.
by the way, in case of need the game is a first person shooter.thanks for all.
other question.
i got a class called char that includes all player features, i think the way i have to deal in a multiplayer online is creating a new object of this class in server and in all clients, if this is right, wich is the better way to save info about this player, might be sql database? , or might be just a binary file with the object and load it each time this player connects?
i know i made tons of questions, im a java programmer, this is my first contact to video games and im pretty thanksfull to jmonkey for this software. if i finally end my online game and i get some incomes i will donate a big % to this helpfull project.
thanks for make it free and give us this chance to create a game that simple, im working with jmonkey tons of hours per day and im pretty happy about the quickly my game is increasing in complexyty. thanks