Course: C++ Fundamentals: Game Programming For Beginners
Video: 83. Attack!
I keep getting these errors when I try to compile my program after adding the
if (CheckCollisionRecs(goblin.getCollisionRec() and goblin.setAlive(false) lines.
Error Messages:
‘Rectangle BaseCharacter::getCollisionRec()’ is inaccessible within this context
‘void BaseCharacter::setAlive(bool)’ is inaccessible within this context
Any help would be appreciated.