Do you have your player on the scene?
Cause i don’t see any events regarding your player
And if object does not exist on scene then its variable cannot be taken from it since they also do not exist
Like you know i exist
But as long as you don’t have my picture you do not know what is my hair color
i’m not completely sure on how are you subtracting points to enemies.probably your health bar is not linked to beetle or viceversa.
You said:
if attack button clicked—>change value of health bar → subtract player.attack…and it looks fine …
then (i never used that extension ) but why to apply again player attack damage to enemies. I mean why not check if thehealth bar is <= 0 then…delete beetle…
isn’t the first action enough…?
just asking…
edit: probably it would mean to link objects and repeat for each enemy