1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

GMS 2 HeartBeast networking for more then 2 clients?

Discussion in 'Programming' started by FoufaDjo, Feb 12, 2020.

  1. FoufaDjo

    FoufaDjo Member

    Joined:
    Nov 14, 2018
    Posts:
    39
    is there a way to add more then one player to the server like a player host server select player then the other can join so like the host send his player creation stats like color and class ect and the server creat the object something like that i saw HeartBeast Networking for Beginners! and sems to work only with one client
    if there in the same formate as his video let me know:



    var type_event = async_load[? "type"];

    switch(type_event){
    case network_type_connect:

    //here

    break;

    case network_type_disconnect:

    //here

    break;

    case network_type_data:
    var buffer = async_load[? "buffer"];
    buffer_seek(buffer,buffer_seek_start,0);
    scr_received_packet(buffer);

    //send data here

    break;
    }
     
  2. kupo15

    kupo15 Member

    Joined:
    Jun 20, 2016
    Posts:
    926
    Try this. This deals with more than one
     
    FoufaDjo likes this.

Share This Page