#Having some problems with inheriting properties of CharacterBody2D from custom parent class
1 messages · Page 1 of 1 (latest)
Ignore the movement code I know it looks weird, I am just trying anything and everything to get the skeleton to move at all
when the skeleton extends Enemy, it just sits there and does nothing and interacts with nothing like a Node2D but when it extends CharacterBody2D it works as intended
I could just make each enemy their own class but I want them to share a parent class to make it easier, any pointers will be greatly appreciated
Old Skeleton is not throwing any errors like “move and slide not defined in this context”?
It might be an issue with using _init in Enemy class.
Inherited By: AudioServer, CameraServer, ClassDB, DisplayServer, EditorFileSystemDirectory, EditorInterface, EditorPaths, EditorSelection, EditorUndoRedoManager, EditorVCSInterface, Engine, EngineD...