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

In the meantime, here's some more Pokemon finds. I think my Rat might also be sick?

OH! Different way of doing it.

11 lines of code, no randomness needed to stop them bouncing forever up and down!

This still means individual objects for the balls and bouncers, but no physics engine definitely means this is possible for minigames!

It's nearly 6am, I gotta sleep "I don't think so" - OneShortEye and Summoning Salt urghhh

I guess everyday is a Friday when it's a #FanArtFriday! This one's my most recent art of Majora's Mask

DING!

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

I am behind on progress post but need sleep.

Drew new Crafting Buildings because I didn't want to fill the Crafting Bench with loads of Equipment Recipes.

Even with the new ones, I'm still probably going to have to add tabs to swap between types

Ok, this version works without physics. I had to scrounge up some old bullet code from a platformer project I have.

It's nowhere near as accurate, and entirely random bounce angle when colliding with something. But it works and use like 15 lines of code?

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

Happy November everyone!

Super slow month since I took a few days off for my birthday, and spent a lot of time making new sprites which doesn't really require much write up.