lpowm.blogg.se

Game maker studio 2 animated splash screen
Game maker studio 2 animated splash screen









game maker studio 2 animated splash screen

You'll still be able to use gms_self_set, but you'll have to use gms_other_get to retrieve the variable. If you want to use GameMaker Server for a turn based game, you're most likely better off disabling the entire simple mode, and simply setting the player and other player object to -1 (or noone).ĭisabling the simple mode will turn off all the "nice" stuff like automatic syncronisation of the player position and variables. I'll do a rundown of some things that you might want to consider, feel free to ask if something isn't clear :) The "live" game thing is the easiest use case, and the most used one. Add this piece of code to the create event:Ĭorrect. This will be done automatically by the extension.Īdd a sprite and some logic to make the object move when pressing the arrow or WASD keys to the obj_player object.Ĭreate a new object, and name it something like obj_login. You should not put any game logic in this object. Every player that is online will get an instance of the " other player object". The " other player object" ( obj_other_player) will be representing all other players that are online. Walking, shooting, health, setting variables, etcetera. The " player object" ( obj_player) should be the object in which you place all game logic. Obj_player and obj_other_player should be two different objects. When a player logs out incorrectly, it is possible that not all data is saved properly on the server side. It is important that you log out correctly. The Drag & Drop action " Logout" on the tab " Online 1" can also be used. Make sure you've added the extension to your game. To do so, you should set up an object that initializes the extension. If you want to use a new GameID, you'll need to create a new game.Īfter you've registered your game, the game will be able to connect to the server. The title can be changed later if you want.

game maker studio 2 animated splash screen

Enter the GameID of your game, and type in a title. Scroll down to the "Register a new game"-section. Now that you're registered as a developer, click the "Developer" tab on the menu bar at the top of the page. If you're not registered as a developer, click your name in the upper right corner of the page, and then click "Register as a developer" and follow the steps on the web page. Open up the GameMaker Server website and login if you haven't already. The GameID is the number in the text box labelled "Game Identifier" at the left upper part of the window. The GameID can be found by opening "Global Game Settings".











Game maker studio 2 animated splash screen