I am creating a topdown arena game, 1-4 players, I am very noob in Gdev.
I created 2 characters, a Paladin and Hunter, both are working well if one player pick one of them and the other player pick the other left.
I did a scene for the players select what character they want to play,.
Logical: player 1 and 2 hits the selection button > they set the global var for each one, where var = 1 = create paladin obj and var = 2 = create hunter obj > change scene to game > create the objects characters
So the problems are:
1- they cant select the same character, if they do the scene character select will freeze
2- even if I create a new character, a Mage for exemple, the game freezes in the scene character select
both cases do not change the scene and cant make anything work in character select scene.
1- that can be fixed creating 4 paladins and 4 hunters, one for each player? I tried to duplicate the Paladin, what created Paladin2, created a new group of events using that but still dont work, game freezes before changing the scene.
2- because Mage uses the variable = 3 (paladin = 1, Hunter = 2) I tried to make paladin = 3 just to check the character selection variables are working and this worked, even if I say to create paladin if variable is = 3 or even 4 they work, so I think the problem is something about the objects, are something like a limit of topdown behaviors in Gdev?
Please someone can help me?!
edit: tried to create paladin and mage, both togheter in var = 1 and worked, somehow the game are needing both paladin and hunter in the game for work…
I tried to instance they with their events toggled disable and worked fine, some piece of my code are making the game freeze if I dont put both in the game.