I tried new method for character selection for my game. It does (kinda) works because there is one annoying bug I can’t figure out for days on how to fix it.
Basically it works like this.
- I have 3 objects with different sprites. Each of those objects have Platformer behavior with default controls.
- When game starts, only characters (objects) that player selected at before start keep default controls, and the other ones have it disabled.
- Also, I loop every player and create the same object his enemies have. (For example if player A have zombie character, at player B’s screen zombie character will be created).
PS: I have two groups. “EnemySkins” and “Skins” and those 3 objects belong to both groups.
What’s my issue here? If all players uses all the same objects (For example all players use zombie character), everything works fine.
Otherwise, doesn’t matter who of the players is moving, on everyone’s screen only one same object will be moved.
Ik it’s hard to understand so here’s videos below, and my project files. I really hope someone can help me fix this issue.