Starting with defined spawn locations

Posted by Zoythrus
Hello, I'm decent in GM, but am a noob to networking.

I've decided to use the GM Server for a game I'm making, but I've run into a little difficulty with something.

Okay, here's the scenario:
I'm making a 4 player fighting game, where the players can choose their characters (out of a list), then when everyone's ready, the host chooses a stage. Once in the stage, a "stage controller" object places the players, in order, at 4 predetermined points on the stage. The points are noted through objects on the stage (so I can change up the spawn locations for different stages).

Thing is, I don't know how to tell the "stage controller" how to state which character to spawn, but also how to make sure that the players are going to remain in control of them. This also needs to be done in such a way that more than one player can choose a character without it overlapping.

Also, I've read that this doesn't handle physics well. Seeing as the game I'm making is a 2D, sidescrolling fighting game where the player

Replies (1)

Last message on 24 Dec 2017

Chibi on 24 Dec 2017, 21:29:18
So I've used this on a game that I made.
Basically you've got to make them go to different teams once they join the room and then you'll need to make something like this :

if gms_team_get_current() == 1 {
x = (the value you want)
y = (same thing)
}
if gms_team_get_current() == 2 {
x = (the value you want)
y = (same thing)
}
if gms_team_get_current() == 3 {
x = (the value you want)
y = (same thing)
}
if gms_team_get_current() == 4 {
x = (the value you want)
y = (same thing)
}