PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Accessing myframegame.m_Lives & myframegame.m_Score

how do we change m_Lives or m_Score please ?

myframegame.m_Lives += 1;

doesn't work ( ie for extra life )

(v98 now working, Jacco, i had to hard reset PPC, twho many crashes i guess :') )
These are protected members of the GameFrame class, wich means that you can only access them from derived classes. So, inside methods of your game class that you derived from GameFrame you can freely use m_Score and m_NumLives.