-
1. Re: Can Flash Pro cc program multi-player interactive online games?
kglad May 19, 2014 7:30 AM (in response to cyberbaffled)flash can handle multi-player games but that's an advanced endeavor not suitable for novice/intermediate coders.
and no, there's certain to be major problems coding the game in flash and then exporting for html5.
for a html5 muli-player game, the most you should do in flash pro would be to create the graphics in flash and then code in javascript or a server-side language.
-
2. Re: Can Flash Pro cc program multi-player interactive online games?
cyberbaffled May 19, 2014 4:08 PM (in response to kglad)Thanks greatly kglad. That's unexpected information. It makes one wonder why anyone would upgrade from Flash CS5.5 to Flash Pro.
-
3. Re: Can Flash Pro cc program multi-player interactive online games?
kglad May 19, 2014 5:37 PM (in response to cyberbaffled)flash pro cs6 has a lot to offer over cs5.5 especially when publishing for android/ios.
flash pro cc has some major speed enhancements over flash cs6.
there are quite a few other things to like from cs5.5 to cs6 to cc, but those are the ones i notice.
-
4. Re: Can Flash Pro cc program multi-player interactive online games?
cyberbaffled May 20, 2014 9:12 AM (in response to kglad)Hi kglad, Since you're knowledgeable about Flash Pro I'm hoping, maybe, that you might be able to comment on the question in parenthses following that I have posted on the Edge Animate forum, but has gotten no answer in several days. Suppose hypothetically that I have some beyond "intermediate" facility with Flash Pro. If not, not. Thanks for the information that Flash pro facilitates publishing to android. "What advantage does Edge Animate contribute to Flash Pro cc when programming a multi-player (2-4 players) interactive online game? If Edge Animate can contribute that advantage to Flash Pro, are any of the other Edge products necessary to program a multi-player interactive online game? This would be a PC based and not mobile game."
-
5. Re: Can Flash Pro cc program multi-player interactive online games?
kglad May 20, 2014 11:34 AM (in response to cyberbaffled)edge is a tool for creating interactive animated web content, but edge offers nothing for flash pro experts who can do the same (creating interactive web content) leveraging their flash pro skills in flash pro.
about multiplayer games and flash, here's an excerpt from a book i wrote (Flash Game Development: In a Social, Mobile and 3D World)
Multiplayer Games
With multiplayer games data needs to be communicated among the players. When a player makes a move (changing the game state) the updated game state needs to be communicated to all the other players. In addition, that communication needs to occur in a timely manner.
With turn based games (like card games) that communication among players can take as long as few seconds without degrading the game experience. With real time games (like shooter games), even a 250 millisecond delay in communicating game state leads to a significantly degraded player experience. Consequently, real time multiplayer games require substantial expertise to successfully develop and deploy.
There are two fundamentally different ways that communication among players can be accomplished. Players can communicate via a server (server based games) or they can communicate directly from player to player (peer-to-peer) games.
Server Based Multiplayer Games
Generally, the code in each player’s Flash game handles the player’s input, transmits player data to the server, receives other players' data and displays the game state. The server receives player data, validates the data, updates and maintains game state and transmits each player’s data to the other players.
The code used on the server cannot be ActionScript so you will need to learn a server-side coding language like php or c#. Server-side coding is beyond the scope of this book so I will not cover server based multiplayer games except to say you need to have advanced coding skills in, at least, two languages (ActionScript and a server-side language) to create these game types.
Peer-to-peer games
Since Flash player 10, you can create multiplayer games without the need of an intermediary server to facilitate player communication. The Flash player can use a protocol (Adobe's Real-Time Media Flow Protocol) that allows direct peer-to-peer communication.
Instead of using server-side code to handle the game logic and coordinate game state among players, each peer in the network handles their own game logic and game state and communicates that directly to their peers and each peer updates their game state based on the data received from others.
To use peer-to-peer networking each peer must connect with an Adobe server. Peer-to-peer communication does not go through that server (or it that would not be peer-to-peer) but peers must stay connected with the Adobe server in order to communicate with each other.
To communicate with the Adobe server you should use your own server URL and developer key. That URL and key can be obtained at http://www.adobe.com/cfusion/entitlement/index.cfm?e=cirrus.
Below is a simple tic-tac-toe game that uses Adobe's peer-to-peer networking to pair-up players. The NetConnection class is used to establish a connection to the Adobe server while the NetGroup class is used for peer-to-peer communication.
I used only a small part of the NetGroup methods for the tic-tac-toe game but there are more available if you are sharing data among many users and/or sharing large amounts of data.


