playMaker

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

kentcheung2000

  • Playmaker Newbie
  • *
  • Posts: 37
    • View Profile
Store tilemap in array?
« on: November 09, 2018, 11:35:45 AM »
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: 14388
  • Official Playmaker Support
    • View Profile
Re: Store tilemap in array?
« Reply #1 on: November 23, 2018, 12: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