Brand new to Gdevelop coming off of clickteam fusion and Im fixing to make a beat em up game. I followed along with sparcmans tutorial on youtube and that works great for one player. But my game has a potential for seven players at a time. How do I keep players off of each others platforms when they are moving around?
Hopefully someone more experienced than I will give you a better answer, but if it were me, I would try using object variables that say if a player is on a platform, other players go through it, or maybe are pushed away using a force.
If you want to post a still image that can help us visualize exactly what you mean, that might help lead to a better answer. I haven’t seen the tutorial you are talking about so I’m just guessing at what you are talking about.
So in essence you want to keep each player from being in the same vertical screen space?
This is different than I was thinking with separate platforms.
Definitely not something I’ve done before.
I’m not sure if this is the best solution, but I would think you could have a condition to check if one player is within a certain pixel distance from another (in all directions, or just the Y if you don’t mind overlap on the X), and if they get too close a force is used to push them away from each other. Sorry, I’m pretty new, so I am not sure I can be of much more help than that. But I would think that would work. I have been wanting to make a game that works similarly so if I end up doing it, and it works, I’ll let you know exactly what I did, but it may be a while before I can get to it since I’m not done with my current game.
If you want to try what I suggested, but can’t figure it out, let me know and I’ll see what I can do to help. If you put something together and have questions, be sure to screen grab the conditions and actions and post with your question to make it more likely people will be able zero in on what the issue is.
So the basic way to separate them apart is to use condition “is colliding with”, and event “move away” and define which 2 objects should be separated. Also, for each object/player, apply proper collision mask in Object Properties / Edit Collision Masks. Here you define shape of collider. Hope this helps !