Error for Collision Rec in Video 83: Attack!

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.

I fixed the issue.

Good job finding the solution!

For others that may stumble on this, what was your solution?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms