- Home /
2D Animations Not Working After Building Game
Hey, so basically the problem I'm having is game breaking. When I test out the game in the editor, it works fine, no problems, but when I build the game and run it, the player's animations are not playing and his only action button isn't working either.
I'm so close to finishing this game and releasing it, this sudden unknown bug is the only thing stopping me. If anyone can help, I'd be grateful, thank you. If you need code, let me know, I'd be happy to provide it
UPDATE
I actually managed to figure out what's wrong. I have Json files to save some data, like unlockable hats, and for some reason whenever my player script calls a method in the hatmanager script (the script that has the json file lines of code) to check to see if it has a hat equiped at the start of the level, it stops my character's animation and the bomb button doesn't work at all. So I guess I have to either find another way to call that method, or remove the hat code entirely, release the game and fix the hat json code another time
Answer by imkrystal · Jan 22, 2019 at 06:38 AM
@Trickster511 You can use Android Studio (for Android) and Xcode (IOS) to show LogCat (what is missing, error in that ....)
Sorry, I can not guess the cause of your problem.