k
kimonade

After adding the Damage area Script, I can't move the player in the scene

Fixed this by adding the player to a group("player") and checking if the player parameter is in "player" group. Is it a godot version issue that made it not work at first?

 if player.is_in_group("player"):

  get_tree().reload_current_scene()

  • Nathan Lovato replied

    It shouldn't be linked to the Godot version but more likely some missed step or an error in the code. The code sample that you provided doesn't tell why the player could not move.

    I'd need to open your project in Godot and inspect the code to see why this is happening. If you'd like us to look into it, we would need you to compress your project as a zip file and upload it to a file hosting platform such as google drive, then share the link with us in a reply to this thread.