Thank you. I modelled it after Sweater Cat Studios' tutorial. The link to the video is in the dev log. He used the latest Godot game engine and zooms in to the relevant portion and explains well.