1 year ago

Fixed my Array Order Load bug!


I realise that if I change the order of the entries in the Building array (as they appear in the Build Menu) it breaks the Save Loading of the buildings.

This is because my Load code "Re-builds" the building as if the player made it, so when the game Saves it stores the place you'd be in the building array then the Load uses that to get the correct data, so if I rearrange between a save and a load it wont find the correct building.

SO! I'm now storing the building type (name) and feeding that into a ds_map to return a value, that value is a Macro e.g "FURNACE" = 3; which I use when populating the building array. Now instead of rearranging the array manually I just change the Macro number for the relevant value and that does it automatically!

Didn't work the first time though...forgot something XD



0 comments

Loading...

Next up

Busy pixelart repost! SKELETON

Look, I only have like, 3? Spooky bits of art ok! X'D

While I do code stuff, have a spooky pixel art repost!

Progress Post is coming soon! But here's the Sticker Shrine Post! Thank you all so much for the support, you all help me out so incredibly much.

Play our game, Bloodless, and complete the Help Tomoe quest to unlock the Bloodless sticker pack!

Start the quest: http://gamejolt.com/#quest

Game Jolt has given out all of their free Steam keys!

Is my birthday today...

Please make sure you eat some cheese!

Hope you all have a fantastic one!

Happy Video Game Day! 🎮

Celebrate by completing our quests!

(They'll be in your quest log until September 19th.)

Happy Sunday everyone! Hope you're all well

Things got messed up so I had two lifts arranged to lunch lol all good now.

Think there's extra special dessert today since my birthday is on Tuesday..

Please look after yourselves and have a fantastic day!

#ScaryGame

Eternal Darkness.

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Another month in the bag!