I think you may have an extra node there then. Check the Remote tab while the game is running. It will show you the live structure.
what does the remote tab do?
I just told you, it shows your node tree as it is when running the game instead of separated into scenes.
Oper the hierarchy until you find the coffee.
See how the âcupâ has a âNode2Dâ and then the âcoffeeliquidâ node? Thatâs why it canât find it with $ notation. Itâs not a direct child of âcupâ.
oh ok, so I need to make it a direct child by removing that Node2D, right?
Yeah, and I donât think you need the script also on that scene, since youâre attaching it to the instance named âcupâ.
Might be youâre looking for a $coffeejug
node, but your node is called coffeeliquid
?
1 Like