After i created the game mode as shown here The Game Mode Class | GameDev.tv
i am getting many crashes
Could you show your turret.cpp code please?
You never initialised Pank
to point to anything. You’re dereferencing a null pointer on line 60.
You need to initialise that variable to point to the player Tank.