This site requires JavaScript, please enable it in your browser!
Greenfoot back
Entity1037
Entity1037 wrote ...

2013/12/15

How fast is UserInfo capable of storing data to the Gallery?

1
2
Entity1037 Entity1037

2013/12/15

#
I'm thinking live-action online muliplayer. Does anyone else think this is a plausible idea?
Entity1037 Entity1037

2013/12/15

#
At the very least, I would like a race mode where you can race each other on some stage, and be able to see each other's ghosts (like in Mario Kart).
bourne bourne

2013/12/15

#
First impression, no. (Though I would like to test out more multiplayer designs through UserInfo here soon). Storing to UserInfo takes too long. Fastest would be just using the ints I believe (faster than storing the strings). But still takes a bit.
It takes a few seconds for it to upload, and receive information. The most plausible/possible thing you can do with the UserInfo is a step-by-step game like the battleship. If you want to do something more "Live" you could try something that is similar to this: Territory WAR (I use to play this game a ton when I was younger)
Oooh, I might work on something like that now :D
bourne bourne

2013/12/15

#
A ghost for a racing game could have something stored of your best race, so the information tracking you around the track could be saved, which could be played by other users without the need of constant 2 way communication
Entity1037 Entity1037

2013/12/15

#
OK, well couldn't you transfer position, and animation data in one integer by changing any 0s to 1s, and then seperating the values by a 0? This way, you have a rough estimate of the actual data, it only takes one integer, and you could just convert it into a String and take it apart to get the data.
bourne bourne

2013/12/15

#
By the way, my Battleship game uses only one int during playing (and has implementation to use each of the 32 bits separately). You can see it still takes some time for communication
Entity1037 Entity1037

2013/12/15

#
Besides, I wouldn't mind the lag time very much, as long as a game timer could tell you when which player actually won. You could maybe even have a scoreboard that depicts the best time (just display the high scores backwards).
bourne bourne

2013/12/15

#
Though I forgot to implement something that might speed it up a bit
Entity1037 Entity1037

2013/12/15

#
You could maybe even have a game where one player can make a stage (I'm talking about my game here), and have the stage data immediately transfer to the other player when they do anything to the stage, and once finished, be played (this wouldn't save the stages permanently though, it would be more like a see how big of a douche you can be kind of game).
Hmm, if I'm reading correctly, It'd be pretty cool to see each thing added on to the map. The best way for something like this is to add/remove one thing at a time, instead of the whole map. Then, you can have 1 or 2 ints that determine each change that is given to the other player.
Entity1037 Entity1037

2013/12/15

#
That's exactly what I had in mind. Actually, I think if you were to send position and animation data to see another player, it would be better to actually send how much the other player moves instead of his position. This would be easier than trying to figure out where the heck the player's coordinates are in the other player's world (which has scrolled a lot, and therefore made the coordinates of the actors in the stage different).
bourne bourne

2013/12/15

#
If you only send information on how much the player has moved, then you must implement something like a notification that the information has been received before storing again. Otherwise, the player location would possibly get off by missing a cycle of information. Though notifications for receive/send can be important for any communication
Well, either way, you have to have the client figure out the animations, not the UserInfo. That's how this is done with normal games. Figure out where everybody is (downloading/uploading from/to server), figure out if anything needs to be done (explosion, death, etc.), render world, render particles/physics/etc, move forward animation and render characters, based off time taken to render everything else, start reading key strokes and upload data, and the cycle continues. At least, this is how I would render out normal 3D game client-wise. My point being, render animations, movement in clients, get coordinates/amount moved through/from UserInfo. Edit: have the server do as little work as possible, the client should do almost everything!
There are more replies on the next page.
1
2