- Edited
Carmes The editor is saying the body
parameter that is passed into _on_Player_body_entered
isn't used (yet). It is just a warning and can likely be ignored for now.
A warning like this could mean the programmer has made a mistake; perhaps the intention was to use a variable and they didn't? Or maybe they thought they did but have misspelled something (for example) so should always be checked. If you want to suppress the warning, the editor indicates you can change it to _body
:
func _on_Player_body_entered(_body):
pass
And the warning will disappear. But it's likely you'll use it in the tutorial so don't worry too much if you understand why the warning has appeared.
Note: you have a pass
statement here that should also likely be removed before the statements following it (emit_signal
, etc). This probably won't fix the sprite issue (possibly something else, worth reviewing the manual again...) but itโs unnecessary.
Keep going!