Having an issue where project wont start, says its because of a label I haven’t messed with at all since last time I ran the code, if it helps the label is just text above the player to say what state player is in. Wasn’t having issues with the label appearing or state machine working at all but after changing some animations for some reason it wont start at all and throws the error ‘invalid assignment of property or key text with value type of string on a base object of type string’ I can post my code if it would help, but its throwing the error at every mention of that label, which is in every state.
alright, I have a script called player_manager, which is called for a bunch of stuff, this is just one of them, and the function that changes the label is here
current_movement_state is just a check outside of the state machine to tell me what state im in for some other stuff, move_state is the label itself, it looks like im getting that error on both lines, as well as everywhere else the function is called, this is how im calling the function in the idle state
player_manager.change_movement_state_text("idle")
I’m pretty new to godot so probably just a bad call I just don’t know why it randomly became an issue, I double checked the animation player and it isnt having any issues and doesnt affect the label
I fixed it, text doesn’t exist on the string type, so I should’ve just done move_state = new_state, I had .text still from when I was directly changing the label, not sure when I changed this but glad I figured it out.