Scirra cog

About Us

We're a London based startup that develops Construct 2, software that lets you make your own computer games!

Archives

Browse all our blog posts

Latest Blog Entries

We love brains!

Join us! Joiiinnn ussss! Mooooree brains!

Make online multiplayer games with Construct 2

by Ashley | 24th, April 2014

For a long time the top feature request for Construct 2 has been to add the ability to make real-time online multiplayer games. This is now finally possible with the latest Construct 2 stable update r168! This groundbreaking new feature means it's now possible for anyone to design high-performance, low-latency online multiplayer games, even if you don't have a programming background - something that has never before been easily possible.

Demo: Ghost Shooter Multiplayer

Try out this demo multiplayer game made with Construct 2! This takes our previous "rain demo" ghost shooter example and adds multiplayer features. Use the arrow keys or WASD to move, and mouse to aim and shoot lasers. Try and zap the other players in the game! Click the image or the link below to join. Currently this is only supported by Chrome and Firefox.

Screenshot of the multiplayer demo

Click the image above or join at: http://www.scirra.com/labs/multiplayer/ghostshooter/

Features

The new Multiplayer object in Construct 2 uses the very latest in browser networking - WebRTC DataChannels - for low-latency real-time gaming. As well as working with server hosting (using a browser tab to host the game on a dedicated server), this also opens up the ability to have peer-hosted multiplayer games, removing the need to pay for servers to host your multiplayer games. Combined with Construct 2's visual event system, there is no easier or faster way to design online multiplayer games.

The new Multiplayer feature has a solid technical design, also supporting:

  • NAT traversal, to connect through common home and office router setups
  • UDP-based transmission for minimal latency and to eliminate head-of-line blocking
  • Mitigation against latency, packet delay variation (PDV), and packet loss
  • Seamless adaption to changing network conditions
  • Automatic bandwidth controls to reduce redundant data transmission with static objects or players
  • Built-in local input prediction to keep controls responsive while preventing cheating
  • Support for lag compensation when hit testing
  • Interpolation and extrapolation modes to compensate for packet loss while maintaining smooth in-game motion
  • Binary data transmission with control over specific datatypes to minimise bandwidth
  • LAN game support for near-zero latency gameplay, including support for mixed LAN/Internet games
  • Support for both peer-hosted games (not needing a server) and centrally-hosted games (using a server)
  • Official Scirra signalling server to connect players to each other

Learn how to make multiplayer games

Construct 2's multiplayer engine handles a vast number of technical details for you. For example, the built-in Sync object action alone initiates sophisticated object tracking process, causing objects to create, move and destroy in real-time on connected peers while compensating for minor transmission glitches and automatically minimising the necessary bandwidth. However getting used to the mindset of designing a game with multiple players participating over a network can be challenging. To help new users get going with their own multiplayer games, we have produced 31 pages of detailed tutorials and a comprehensive manual entry, ranging from the overall concepts of multiplayer games to setting up lag-compensated hit testing. See the links below to start learning:

Try it in the Free edition

You can even try out the Multiplayer feature without a license! Download the Free edition and get started. However note you cannot export projects using the Multiplayer feature with the free edition. Purchasing a license and then you can share your multiplayer games with the world!

More to come

We're still not done with the multiplayer features in Construct 2. We have plans to add even more features, ranging from persistent logins with player data storage, to geolocation-based matchmaking to help improve the connection quality. Stay tuned for more updates! In the mean time we can't wait to see what you come up with, so download r168 and get started!

Now follow us and share this

Tags:

Comments

2
GrimPanda 1,331 rep

Amazing job! Once again showing how great a product to use and have in your toolbox. Thanks a ton!

Thursday, April 24, 2014 at 5:04:47 PM
2
jcarson 1,128 rep

Wow amazing!

Thursday, April 24, 2014 at 5:06:44 PM
7
Ashesh 6,365 rep

I am proud to be a construct 2 owner.

Thursday, April 24, 2014 at 5:17:20 PM
3
mvandrei 562 rep

thanks once again scirra :)

Thursday, April 24, 2014 at 5:19:09 PM
1
JosepM 1,160 rep

Fantastic :)

Thursday, April 24, 2014 at 5:21:10 PM
2
TELLES0808 21.1k rep

Best of luck for who work hard everyday, like you Guys.

Thursday, April 24, 2014 at 5:27:10 PM
3
ReflextionsDev 11.7k rep

I have been waiting for something like this for 5 years. This is awesome! Has anyone tried it on mobile?

Thursday, April 24, 2014 at 5:30:20 PM
2
Smit08 3,170 rep

Thats beyond awesomeness.........You are improving it very well.........:)

Thursday, April 24, 2014 at 5:31:44 PM
2
brandonarmour 1,377 rep

Excellent work!!

Thursday, April 24, 2014 at 5:36:29 PM
2
RBuster 6,889 rep

So cool. You are the best. Live long and prosper for Scirra!

Thursday, April 24, 2014 at 5:46:27 PM
1
Wastrel 11.6k rep

Multiplayer will open up C2 to a whole new group of developers. Excellent job!

Thursday, April 24, 2014 at 5:47:12 PM
1
Bl4ckSh33p 8,399 rep

Awesome! Thank you for multiplayer. :D

Thursday, April 24, 2014 at 6:04:36 PM
0
SECTORTWO 582 rep

Wow! Just tried it out - pretty cool! Now...how about throwing a sale to celebrate? Pretty please?

Thursday, April 24, 2014 at 6:17:14 PM
2
Miu3 7,526 rep

You sir in my eyes are the best programmer. Not only you make wonderful and fast work but also present the best solution for non-coding artists to create awesome games. Its just amazing how you manage to keep on weekly updates and provide the users with awesome new features :D Also a wonderful job on keeping the website well organized and lively. It is always a joy to daylie check out new resources including the manual. Ill be looking forward to read everything about multiplayer during the next week when ill have time

Thursday, April 24, 2014 at 6:44:53 PM
1
bulldog 793 rep

really good news scirra

Thursday, April 24, 2014 at 7:31:54 PM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.