I'm making a new game about a baseball player and I want to know if there's a way to make a baseball bat a different object than the character so other objects will react differently to hitting the bat rather than the player
Develop games in your browser. Powerful, performant & highly capable.
Yes. You can simply add the player and bat as separate sprite objects.
Or if you want to keep them as one set of images/animations, you can use an invisible helper sprite to represent the bat's interactions instead.