Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | zlSilverStar |
I got an error in my project: SCRIPT ERROR:
movement_loop: Invalid operands ‘Vector2’ and ‘int’ in operator ‘+’.
[Here is the movement loop thingy]:
func movement_loop():
var motion = movedir.normalized() + SPEED
move_and_slide(motion, Vector2(0, 0))
.
how can i fix it? :c