Hey
I use a file: Konstanten.h/Konstanten.cpp
in this file I create all my bool, int, label etc. If I need them in several other files at my game. It is my headquarters
I do it like this:
Konstanten.h
extern bool myBOOLEAN;
Konstanten.cpp
bool myBOOLEAN = false;
Now I want to create an instans of CCLEVEL (and others) or an integer with a predefined value, but I have no luck to work with it⦠The value is not assigned to it. Is this not possible, or what is my mistake?
Konstanten.h
extern CCLevel *explainLevel;
extern int diamondsDepot;
Konstanten.cpp
CCLevel *explainLevel = CCSoomlaLevelUp::getInstance()->getLevel(LEVEL_EXPLAINLANGUAGE_ID);
int diamondsDepot = CCStoreInventory::sharedStoreInventory()->getItemBalance(DIAMONDS_CURRENCY_ITEM_ID, &soomlaError);
Thank for your advise.