View Full Version : 2 player fighting game?
Lummi
June 17th, 2007, 12:06 PM
Hello to all,
We all have dreams, one of mine is to create a 1 vs 1 online realtime game such as Tekken.
However, I am in a very early stage of learning Flash and I do realize I need a couple of weeks of reading, testing and programming.
What bothers me is that I can not find a good tutorial how to create such games in multiplayer. Almost all tutorials seems to be focusing on 1 player games, but when it comes to multiplayer it seems to be impossible.
Can anyone confirm that it will be in realtime if using a socketServer?
Also is there someone who knows a good tutorial how to create such game I would appreciate it very much.
Lost and need a flash...light....
//Lummi
pingnak
June 17th, 2007, 01:25 PM
Two problems with multiplayer:
1. Via server, lots of complexity to contend with, and big-time lag. You press the kick key, it takes anywhere from 10ms to 1000ms to happen on the other guy's screen. There's no good standard quality of service. If web pages come up before you die of old age, and movies sometimes play without pausing, that's acceptable performance in the eyes of most ISPs. On a LAN, it's OK, but you'll still have to run a server, or make one of the computers running the game accept connections.
2. Via shared keyboard, well only a few keys at a time can be detected by the keyboard. With two players mashing away on it, so it constantly misses keystrokes.
For whatever reason (I suspect Macromedia wanting to sell Shockwave at double the price for Flash) there's no Joystick support in Flash. A joystick would make it pretty trivial to support 2P. You plug a game controller into the PC and Flash doesn't do anything with it, and there's no built-in API to read a Joystick.
You might be able to support one player using the mouse and one player using the keyboard, and perhaps some keyboards that had the keypad as a separate (and separately decoded) input device could support two players, but that's hardly a case you could use to build a common example on. If a joystick emulated a keyboard input device with some configurable keys, that could also be used as an input device.
The Wii has Flash implemented on it, and that has controllers, and they behave like keyboard/mouse.
InfestedDemon
June 19th, 2007, 12:42 PM
I wouldn't mind helping, but 1v1 is all you're going to be able to do...Uless to do like a tag game, EG. Tekken Tag Tournament, I could help with sprites, if you want. (if you're amking a game using various characters from Video-Games)
Darkblade
June 19th, 2007, 04:02 PM
although you can make a game with two players one uses the W,S,A,D and Q,E to attack meanwhile the other player uses the Up, Down, Left, Right and the shift and control to attack
I've been working on a super smash bros style game and it works fine with these principles so go ahead and try it yourself.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.