Friday, April 4, 2014

Create a Turn Based multiplayer game in Stencyl

Small presentation first !

In this series of blog posts I will show you how to make a turn based multiplayer game in Stencyl.
I will use Stencyl Version 3.0 for this series, the Nuggeta extension and Photon's 2D list extension.
I will also assume that the reader has acquired some basic knowledge on how things work in Stencyl, as this guide is aimed for Intermediate level users. I will NOT use any pre-made behaviors throughout this series of blog posts.

But, before actually starting I would like to point the following: The Nuggeta extension WAS MADE for Turn Based games, and, at the time of this writing, real-time multiplayer games CANNOT be created using this extension.


I would like to create a 2 player game, where the players are presented with an 8x8 grid of squares, each player takes his turn to click on a square to mark it as Claimed. We will change the color of the claimed square to show that it's been claimed, and we will also mark the danger squares in red to show the player that if they click on them, their opponent can win.
The player who connects 3 claimed squares in a row, column  or diagonal is declared the winner.

I decided to name the game Gijutsu, and from the screenshot below you will realize that my artistic skills are non existent (hopefully someone can help me with that aspect at some later point).

This is a pretty basic example of a multiplayer game, but it should allow you to understand the logic that you must apply to your own games, and it should teach you how to use the Nuggeta Extension.

Without wasting more time let's first start by Creating our game on the Nuggeta webpage so that we can download the API files needed for the extension.


  1. Replies
    1. You will need the Nuggeta Haxe/openFL API from

  2. This is extremely complicated, but I'm trying to learn everything about multiplayer games. I just have to download some tools and read tutorials like this and I'm ready to go.

  3. It's not that complicated if at first you start small. Making a TicTacToe game isn't much, but it will teach you how you can make a more complex game after that.

  4. I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing.
    Real Time Multiplayer Game