2d array only acting like a flat array


ok here m¥ problem,
have game using 2d array load user has done (saving state) each level, using 2d array.
@ moment have 5 levels , 36 values save each level im using-
gamestate[5][36];

, when on level im loading using,

code:
for (i=1; i<=36; i++)  {  squarepic[i] = gamestate[level][i];  }
and oposite way round save game stat level.

problem arrises when try , change between levels , array seems treat each level same whatever has happened in level 1 moves on level 2 , level 3 if same level.

idea why happening.

jon
 

post actual saving , loading code.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Mail will not Quit when shutting down

MacBook Air 2011 Reviews

What's the max amount of RAM an iMac can have to run BootCamp & Parallels Windows 7?