The Daily Click ::. Forums ::. Klik Coding Help ::. including external array files in ios build
 

Post Reply  Post Oekaki 
 

Posted By Message

|Fleetwood



Registered
  08/06/2011
Points
  2
31st March, 2013 at 31/03/2013 22:28:34 -

Hi guys,

Sorry if this seems like a stupid question. I'm new at this.

My problem is this : I'm working on a small puzzle game and I record myself finishing the puzzles by using an array in-game ( which is then saved to file ). Then I load up these array files in the game to compare them with the player's actions to check if they match - in which case the level is completed correctly. Each array file has about 50 -100 x values and each x value has 2 corresponding y values. Each array represents a "solve" but each stage has different solves/arrays depending on the difficulty setting.

It would be a huge amount of work to type in the numbers manually rather than recording my actions and saving the array. Editing them would take days.

Is there a way to build your ios app and include already saved external .arr files which will be loaded in the game? So far I haven't had any luck ( the arrays don't load ) - I've tried using the Appdir$+"name" for loading etc

I think the problem is that the files have not been included in the build to begin with. Am I missing something or is there a workaround?

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
31st March, 2013 at 31/03/2013 23:19:10 -

http://community.clickteam.com/threads/79839-NEED-HELP!-IOS-and-Array?highlight=ios+array

 
n/a

|Fleetwood



Registered
  08/06/2011
Points
  2
1st April, 2013 at 01/04/2013 01:17:11 -

Thanks Sketchy! That did the trick

 
n/a
   

Post Reply



 



Advertisement

Worth A Click