I'm in the process of attempting to make my Sim City - styled game save/load. I've decided to use the array object to do this as suggested by people in these forums. I had previously had NO experience using this object so please forgive my lack of understanding
I implemented this into my game and I've noticed a big difference in the time it takes to save and load my game and the time it takes in the example file. The actual array files differ in size pretty dramatically also and I can not work out why?
You need to use the buildings' grid coordinates, not their screen coordinates.
The way you're doing it, you'll need a massive 960 x 480 array, when you should only need a 7 x 7 array (in other words, about 9400 times the size it should be).
If you don't want to do the maths yourself, there's always the "Isometric Grid" extension that will convert between screen and isometric grid coordinates.
Oh dear, things have certainly gotten a lot more complicated since the old Klik n' Play days...
Thanks for the replies, guys.
Unfortunately I want to release this on iOS devices so I only have a handful of extentions I can use and I don't think the isometric grid object is one of them.
So do I set the grid coordinates in the Array objects properties or do I set these with an event in the event editor?
By the sounds of things I can not just enter the dimensions of the tile 128X64, and I have to work out some crazy calculation? Because if that IS the case, I am pretty much screwed.