Ever wanted to make an online multiplayer game, but didn't know where to start ?

Ever wanted to learn THNK, and build your own online multiplayer game ?

Then look no further !

Whether you want to build an online multiplayer game, or you want to learn THNK and see it in action !

This template is the best choice for you !

You can get it → modify it (change the assets or add more stuff) → then sell it ! $$$

What you will learn from this template:

• How to start the match when certain amount of players has joined.

• How to share variables between clients and host.

• How to connect and disconnect from server.

• How to check how many players has joined.

• How to make an online multiplayer game.

• How to protect your game from cheaters.

• How to set and share players username.

• How to sync objects between clients.

• Fully understand how THNK works.

• How to connect clients to server.

• How to kick unwanted players.

• How to use THNK extension.

• How to make a lobby.

• And much more !

Engine

This template is built for the free and open-source game engine GDevelop 5

User-friendly

Every event in the template is commented in a way that even a beginner
will understand how things work in the game.

All events are grouped and organized in a super user-friendly way, so the user never get lost in the codes of the template, and can easily find the code of any mechanic he is searching for.

Licenses:

You CAN sell the game as it is, BUT you must mention the game assets credits
(mentioned in the bottom of this page), only if you didn't change the game assets.

You CANT re-sell the template GDevelop project/codes.

You DON'T have to put my name or credit me in the game (Optional) you bought it, it's all yours !

Platforms

The template works for PC only, BUT, you can easily modify the template and make it work on mobile !

Get it now and make your Online Multiplayer game !

Get the template

Credits:

Music:
By World Music OFCL

Weapon:
By knik1985
https://opengameart.org/content/weapon-1

Purchase

Buy Now$3.99 USD or more

In order to download this Template you must purchase it at or above the minimum price of $3.99 USD. You will get access to the following files:

Online Multiplayer Template GDevelop project.zip 4 MB

Development log

Comments

Log in with itch.io to leave a comment.

I want to ask how to add two character I tried to create 2 player and connect them with current player that didn't worked. After that I tried to keep 1 player and change animation on what is your player number.

To add another character to the game (same player but another sprite):
Game scene → Character → player object → right click → duplicate → duple click on the new duplicated object → change the sprite animations to the new one (Idle and Move animations) → Game scene events → you need to create new events for the new added character in the client codes and in the server codes.

I programmed the template for 1 character, to add more, you need to adjust the events to control other characters.

Can you tell me server code events for two players. I tried already but when I'm controlling that that controls only controlling 2nd connected player.

Am not sure what you mean, make sure to read the comments in the template, to understand how the controls work in THNK.

Tell me what I'm doing wrong here if I don't create another player it works so well,

I can't tell, it could be anything, maybe you didn't add the new events for the new player, maybe you didn't add sync behavior to the new player, maybe.

It could be anything, so like I mentioned before, read all the comments i wrote in the events, and learn how everything works, then add the new player and its events.

Can I get server with this or I have to make my own somewhere?

Hi !
Online multiplayer template uses PeerJS server, which is a public server open for everyone, it helps to establish connections between PeerJS clients.
So if you get the template, you will also get the server with it, it's a public server.

(1 edit)

That means game  not going to get gameplay delays,and if I modified for a platformer it's works well?

The delay depends on how far are you from the server.
You want to change the game from top down to platformer ?
In that case, you need to adjust the events, and other related mechanics, since the template is designed for top down

Great template!

I have a question though, will you update this template for future THNK versions and do you have plans to try using other connection methods such as THNK relay?

Thank you <3

The template currently uses the latest THNK version, and works perfectly without any issues, and yes if THNK got any new updates, I will immediately update the template with the latest THNK version.

I got many requests for THNK relay template, am not sure if THNK relay is fully functional currently, but I will give it a shot in the future and if it goes well without any problems, I will release a new template using THNK relay !

Ok thanks, man! You're a real lifesaver!

You're welcome <3

Привет! А можно ли купить шаблон за рубли?

Itch поддерживает платежи PayPal и Stripe

Thanks Vegetato

Your welcome <3

O M G  is a awesome template.
 maybe in a future upgrade  can you teach wow to sync and play sounds, like in this template the sound of the enemy shot.

Thank you <3
glad you loved the template :D

in this template, you can actually add a sound effect for the enemies shots !

By simply adding a shoot sound effect on the client's side :3

Amazing!!


Does this template includes connecting into a lobby? or it's only for P2P?

(+1)

Thank you <3
Yes ! The template have a lobby where all players can connect to before starting the match.
But it also uses P2P, THNK works as: the host is the server, and when the host makes a lobby, it means now there is a server in the lobby other players can connect to, using P2P.

Thanks for answering. So this means that if a user disconnects the game won't end for everyone else? Do you still to add the Hex Key to join or that can be "omitted"? 

Correct, if a client disconnect, the game will keep going, I programmed this template to do as:
if a client disconnect → delete all that client related objects (character/weapon...etc) for all players.

But, if the Host disconnected, the game will finish for everyone, because in THNK-P2P, the host is the server, and if the host disconnected, it means the server is down, which mean all clients will disconnect.

P2P ID (Hex key), is required to copy and send to the players you want to play with, you can replace that with an automatic system that will make everyone join together without using the ID (using Firebase), BUT it's not safe, because now, you don't know who are you playing with, and THNK-P2P leaks the player IP, so to protect the client IP leaking, i make it as: Copy ID → give it to your friend or people you trust → play together, like that it's safer because you know who are you playing with now (someone you trust).

Nice Downloadable Project (worth the small cost)  ; )  since it's been hard finding a complete game example using THNK.  It's been fun to play as well.  : )