Question - Code LAN Platformer moving from room to room

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Janey_Springs, Jan 7, 2019.

  1. Janey_Springs

    Janey_Springs Member

    Joined:
    Jan 6, 2019
    Posts:
    2
    Hello. I want to adapt the code of the demo version of the "YoYo Games LAN Platformer" for my game. In the demo version, everything happens in the same room. I want to go from one to another. How can this be implemented? I don't care if the second player is teleported to my room or he will stay in his. (< text Google translate) Thanks!
     
  2. The-any-Key

    The-any-Key Member

    Joined:
    Feb 2, 2017
    Posts:
    1,492
    GM can only run code in the current room, so this is often the issue.
    You need to make sure the network code continue to run even when the server change room. Also note that you need to send a message to the clients to also change the room and keep whatever they need to continue the game. First step would be to change the room on the server and then solve each issue you get.
     
  3. Janey_Springs

    Janey_Springs Member

    Joined:
    Jan 6, 2019
    Posts:
    2
    Okay. Thank you!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice