|Topic was automatically imported from the old Question2Answer platform.
After working on a game, the (animated) sprite suddenly dissapeared and I have no idea what I have done. The collision box is still there, but I can’t move the character when starting the game, and the following error is given, once the skeleton mob collides with the player:
Invalid get index ‘health’ (on base: ‘KinematicBody2D’).
Is there any way to find out from the screenshot I attached, or is more information needed? I also included screenshots of the code, where the mistake is evoked, and where the player’s health variable is initiated.
If anyone helps me by any virtue, I would be exultant.
I fixed the visibility issue - somehow the modulate property of the root node “player” was altered. However, I still can’t move the player, and the same error is given.
afaale | 2020-03-05 13:26