Game name is country side

Hello, I am making a game about the country. I made a whole Character Selection Menu. The problem is that it spawns the wrong Character, and I did too much code to figure out where the problem is. This was my idea ''Assign a Character to a number. Then, once the game is pressed, it searches for character 1-4 until one of them is true, until it’s good enough, and it spawns it in." But it keeps spawning in the 3rd one, I think that’s just the last character that spawns in, so it’s the top layer." But I don’t know. Please Help.

Game Here: https://arcade.makecode.com/S17715-60477-71488-52697

1 Like

Since you already know that the “mouseBugFix” variable changes correctly, why not use that variable to create the character as well! Also, you seem to be incorrectly setting the character2 variable instead of the character3 variable in your character switch code. Instead of fixing all that, I would just use the mouseBugFix variable.

Could you ssend me a image of what you would do?

I confused myself with my code