Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Steamworks.gml example

Sample project for Steam-based networking for GameMaker. · By YellowAfterlife

Only works with 2 ppl!

A topic by Soreton created Mar 11, 2019 Views: 529 Replies: 6
Viewing posts 1 to 4

I don't know if it's just me or other people it also happens, but this example only works for 2 ppl, when i try with 3 friends or more the person who creates the lobby stops working or random errors arise, i don't know how to explain it!, any help?

PS: Sorry for my bad english :P


You'll need to tweak it as per this topic

I keep meaning to update this example a little, but I have a lot of things to do

I'm doing the following:

case packet_t.cursor: var steam_id = buffer_read_int64(b);

var _x = buffer_read(b,buffer_f32);

 var _y = buffer_read(b,buffer_f32);

 with obj_cursor if user == steam_id {



The movement between clients is visualized but the movements of the server not.. I don't understand how to make it work, sorry but I'm new in the multiplayer world.

Did you ever find a solution? I'm having this issue as well.

Nope! :( .. If you find any solution, comment here please!

In obj_local_cursor in the Step event I added:

var p = packet_start(packet_t.cursor);

if obj_steam.lobby_is_owner
    buffer_write_int64(p, user);

buffer_write(p, buffer_f32, x);

This fixed the problem for me :)

Oh i see!, its work for me too, thanks a lot!