playMaker

Author Topic: Store tilemap in array?  (Read 1585 times)

kentcheung2000

  • Playmaker Newbie
  • *
  • Posts: 37
Store tilemap in array?
« on: November 09, 2018, 01:35:45 PM »
Hi,

Does anyone knows how to store the tilemap in array and load it to the grid through playmaker?....Thanks.

KC

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Store tilemap in array?
« Reply #1 on: November 23, 2018, 02:19:25 AM »
Hi,

 you'll need a hashtable for example ( using arraymaker)

the key will be the x and y index in the grid, and the value will be the type of tile to put there.

however, PlayMaker doesn't run during edit time, only during runtime. How do you plan on saving data?

Bye,

 Jean