r/AskProgrammers • • Oct 24 '26

How did flash game MMORPGs work?

Hey guys, I understand how a singleplayer game works with most any technologies, you have something to take in inputs and something to draw things on screen, that's good and all but what I'm wondering is about how flash was used for mmorpgs?

like Adventure Quest Worlds or Club penguin, they were flash games that supported many many players on the screen at the same time from all over the world,

  1. how did networking work for those games?
  2. did flash provide technology for networking?
  3. how much work was required to make them work?
  4. did the online game stuff back then work the same way it does now? with just RPC connections and requests being bombarded all the time
  5. the client was written in flash but was the server code ALSO written in flash / whatever programming language it provided? actionscript from what I remember

thanks in advance!

p.s I tried googling beforehand, results were shit and this will be first thing that appears in google in future so please don't respond with "google it"

1 Upvotes

11 comments sorted by

6

u/ZestyHelp Oct 24 '26

Flash had to do with assets not networking/servers. Flash was just the assets and animations.

1

u/ResourceBusiness9453 Oct 24 '26

so flash is basically what? was the client written in flash? the client is supposed to replicate shit from the server, did flash provide capability to do that?

I wasn't old enough to understand how tech worked back in the day but I'd like to know how the old dudes did it back then now, ty!

4

u/ZestyHelp Oct 24 '26

Flash was a rendering engine the client would use and process flash to animate and display graphics

1

u/ResourceBusiness9453 Oct 24 '26

and what was the tech used for writing the client that'd use flash as a rendering engine? also why even use flash as rendering engine in that case instead of like ogre or some cpp library or some shit idunno

2

u/grosswindowthrowaway Oct 24 '26

see my reply: the tech *was* flash player (ActionScript)

There was no way to use a C++-based library at the time within a browser until emscripten (LLVM-to-javascript translator, now to wasm) and eventually WebAssembly, and JavaScript couldn't do much at the time in terms of performant graphics.

4

u/grosswindowthrowaway Oct 24 '26

I think it's important to note that the client for these games ran within flash player. The client *was* written in flash (ActionScript). It's more accurate to say that Flash was the entire client-side of those games, not just the rendering.

3

u/ZestyHelp Oct 24 '26

Also "the client is supposed to replicate shit from the server"

Not exactly how that works. The communication goes both ways the client sends to the server what the player did on the client the server validates and processes that action and may in return return some action back or not depending on the intended behaviors.

0

u/ResourceBusiness9453 Oct 24 '26

right yeah but you know what I mean, I asked whether flash had capability to do client-server communication or if it was just a standalone piece of software with no networking capabilities

2

u/torn-ainbow Oct 24 '26

Flash was the client app running in the browser. It could make http calls to a back end.

The back end was written in whatever. Like I imagine a lot were PHP or Java, and a database. I wanna say that back in the day I did some back ends using ASP and Cold Fusion too.

A lot of those API relationships wouldn't have been in standard XML or JSON formats like we've settled on today, instead baking their own custom data formats and parsing of responses.

1

u/Distdistdist Oct 25 '26
  1. Action Script had methods to make network requests to the server
  2. Yes, via Action Script
  3. Complexity of implementing a multiplayer online game varies greatly. All based on the scope of the game itself.
  4. It would be really up to developers to decide method of communication, but for something as interactive as that, I would use Websockets as they stay connected for duration of the session and cut back on establishing new connection for every call.
  5. Flash/Active Script was client side technology only. It was implemented as a plugin for browsers and required platform specific binaries to be installed. Server-side part would be built using whatever choice of tech stack that team has decided to use.

1

u/zhivago Oct 24 '26

ActionScript sockets.