Custom Controls

Hey guys! So I made the mistake of extending all my npc classes as Nodes, it works but I have been reading up on Custom Controls which is cool and the preferred choice. So I changed up my code to extend a Custom Control.

Now, from my understanding I thought you did not have to call the update method for that Control to work;I assumed it would automagically update through controlUpdate(). But my npc would not move unless I called the update method in my AbstractAppState. Am I incorrect?

You have to add the control to some spatial so that it works. If the logic isn’t dependent on a spatial, use an appState (which you also have to add to the AppStateManager so that it works).