Skip to content

Possible bug in Part 5 #29

@amachado93

Description

@amachado93

When I finished part 5, I noticed that the console printed the fallback name of "Unknown Entity" for all enemy npc's.

The function in entity.gd called get_entity_name() is returning a property called _definition.name but I had to change it to _definition.resource_name to get it to work.

func get_entity_name() -> String:
	return _definition.resource_name

This is a super minor bug, and it could be due to my project's settings, or the Godot version on my machine, but figured I'd mention it in case anyone runs into this as well.

If it helps, I am using Godot v4.4.1.stable.official [49a5bc7b6]

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions