im working on a pac-man game, im currently working on the ghosts, but i have a problem
in it, he shows to make the red_movement_targets.tres’s refcount’s script as ‘movement_targets.gd’, however, when i do the exact same, the bar showing the movement_targets.gd on the inspector tab isnt showing, how do i fix this?
yeah, this basically means the script could not compile. Check out the script. Does it show any error? Is anything marked red? It could also be because of some wrong whitespaces (but it should tell you if there were any).
Also maybe make sure your script does not rely on other scripts that have an error. (does not seem like this, if the script is only these three lines you’ve showed)
If it still won’t show you, just delete the script and redo it
i tried to play the game the tutorial im using made but it gave me an error and shows that the error was from the “@export var scatter_targets: Array[Node2D]” and “@export var at_home_targets: Array[Node2D]”, perhaps maybe its because the version of godot the person that made the tutorial was using is godot 4.1, im using 4.2