Hello! I made some characters for my game, and I created some buttons that you can press to make them move. However, in the Event Trigger Section for the buttons, it seems that only the first two characters listed in the Event Trigger move when you press the buttons. The other ones don’t move at all. I also made a Debug.Log to check if it acknowledged that they moved and it showed the text that they were moving, but they weren’t actually moving. If anyone has a solution, it would be greatly appreciated. Thank you in advance!
Can you share the movement code so we can help?
This code is attached to the buttons for each character to make them move.
Also, I have a movement script for each character. Is it better to have each character have their own script or have one script for all the characters?
Your code is referencing the movement for like a character controller or a rigidbody yeah? Then referencing the animator movement along with that.
Yes, it is. However, the problem isn’t getting the animation to work, it’s getting the character itself to move.
Ok. All the characters can move left and right now but now none of them can jump.
Also, now my characters disappear when I move left. How can I fix this?
I solved the disappearing problem. For some reason because I have code to flip the characters turning left and right, it made them disappear.
How can I fix the jumping problem?
