#Had an error happen while i was resizing something and it broke my weapon

3 messages · Page 1 of 1 (latest)

sharp junco
#

so i had an error pop up while i was resizing my weapon to scale better. this was the error Can't save resource to empty path. Provide non-empty path or a Resource with non-empty resource_path. everything was working fine till I got this error so I decided to restart Godot and it didn't work. I didn't change any code or scenes or anything just tried to save once I resized my weapon. Now the weapon just shoots from the middle of the screen where as before it shot from the player. Here is the spawn code and the code in the weapon when it spawns it gets the player position and goes from there. Even printing the transform shows the updated coordinates but the weapon just keeps shooting from the middle of the screen and not the player. The code worked perfectly fine before hand.

#

here's a gif of it working before the error happened and then what happens now

sharp junco
#

So apparently scaling the node down causes the issue (tested scaling it up to and it had the same issue)