gvbox
#1
#ifndef GAMECONFIG_H_INCLUDED
#define GAMECONFIG_H_INCLUDED
>
// keyword
static const char KEY_MFX[] = “gofac_cd.mfx”;
static const char KEY_SFX[] = “gofac_cd.sfx”;
static const char KEY_BACKGROUND[] = “gofac_cd.bg”;
static const char KEY_BIRD[] = “gofac_cd.bird”;
how can i change my static like KEY_MFX = “abcxyz” in other class ?
jetion
#2
const char variable can’t modify, u can use string replace in a singleton class
gvbox
#3
Ok thanks u Jetion Cry .
But can i modify another variable like static bool ?
Ah . i have another trouble too , i want to use cccallfunc with arguments . But i done know how must do .
Sr my english not good .
jetion
#4
static bool variable certainly can be modify.
u can use like this : SEL_CallFunc action
and it is best not to forget the : CCObjecttarget
gvbox
#5
Ok i found it thanks for your help