View Full Version : Multi-Users :: Multi-player Online Game.
Mayhew
02-23-2009, 07:58 PM
Kay so... I have this crazy plan of starting a small, simple online multi-player game using the SmartFox server. The tutorials in there do not help much, otherwise I'm just clueless. So my question is simply this:
Say I have 2 movie clips (player1 & player2) that serve as 2 players. Player 1 starts moving... Player 2 can SEE Player 1 moving on his own screen. How is this seemingly-simple sending of data possible? ; w;
I do hope I posted in the right place, And that this question does confuse anyone.
bluemagica
02-24-2009, 03:45 AM
Next time you decide to use this font size....provide a microscope with it!
And that this question does confuse anyone.....>_< you want to confuse people?
Anyway, I don't know smartfox server, so i cannot help you with its exact commands, but what you are trying to do is realtime movement, which needs some thorough knowledge of the basics cause you will need a highly optimised code for true realtime! Now, as far as i know, smartfox has a command like sendObject() or something along those lines.....you can use that to send your movieclips positions to each other, and update based on that! I believe in the tutorials, there's an avatar chat tutorial, and a realtime maze tutorial! you should study those two in particular!
PS: You do not seem to be well versed in actionscript, so before you dive into multiplayer, google around for articles on socket and socket servers, and try to understand the concept behind those!
Mayhew
02-24-2009, 05:37 AM
Oh mai... Sorry about that typo thur. (Doesn't*)
And thank you for the update. It's true that time is needed before I go as far as making online multi. Never too early to start practicing, though. I'll take your advice and examine the sendObject() method. Heh. Do Appreciate you taking the time to answer this for me. Every bit of information counts.
Cheers! - w-
bluemagica
02-24-2009, 05:52 AM
if you are truely keen on learning, then go to kirupa.com, there you will find a tutorial on php sockets! Though its outdated a bit, it will help you clear your concepts!
Oh and if you can, its better to stay away from smartfox for now, cause though its easy to make games with it, but its not that good for learning the actual stuff!
Gandur
05-05-2009, 03:21 PM
I 'm with bluemagica about smartfox It's probably better to code a simple java server witch not very hard to do.
BloodyBandage
05-11-2009, 06:03 AM
when learning how to code/develop a game is it better to learn single player style first then, online, or just do both at once?
Game Videos (http://gamefriends.com/game_videos), Ask a Gamer (http://gamefriends.com/ask), Game News (http://gamefriends.com/game_news)
bluemagica
05-11-2009, 10:49 AM
hmm, gutierrez, it feels you are the one pimping that site! the rest here tried to help! And if you want to pimp, use your signature, its supposed to be a personal space not related to a specific thread or discussion!
@BloodyBandage: learn single player first, because before you do multiplayer games, you will need proper concept and must be able to create games on your own! Multiplayer games are nothing more than a bunch of single player games, that share information among themselves and react to it!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.