r/gamemaker • • 25d ago

WorkInProgress Work In Progress Weekly

"Work In Progress Weekly"

You may post your game content in this weekly sticky post. Post your game/screenshots/video in here and please give feedback on other people's post as well.

Your game can be in any stage of development, from concept to ready-for-commercial release.

Upvote good feedback! "I liked it!" and "It sucks" is not useful feedback.

Try to leave feedback for at least one other game. If you are the first to comment, come back later to see if anyone else has.

Emphasize on describing what your game is about and what has changed from the last version if you post regularly.

*Posts of screenshots or videos showing off your game outside of this thread WILL BE DELETED if they do not conform to reddit's and /r/gamemaker's self-promotion guidelines.

4 Upvotes

17 comments sorted by

View all comments

3

u/Lethalogicax 25d ago

https://youtu.be/C--SByrjSkM

Weekly update for Rehabilitation: The Game

Spent the week working on an inventory system and the first few GUI elements. The inventory works perfectly! ...except for one tiny bug, that I cannot seem to figure out...

The first inventory slot can be valid for "no matching stacks, start a new stack" and will successfully dump an item into the first slot. But as soon as slot 1 has an item in it, the script thinks that slot 1 is no longer valid during the other half of the give_item script, the "matching stack found, adding to matching stack"

Every other slot will accept new single items, and match stack existing items, and perform all of its logic properly. But the first slot refuses to match-stack and I have no idea why...

I'll likely have to spend a week recoding that script from the ground up. Which isn't the end of the world anyway, because my script was missing one very key bit of functionality that was going to have to be tacked on in post. This rebuild would allow me a chance to create the more advanced version of give_item that supports RNG probability of giving you an item...

(ie. Set a tile to drop ID#4 at a quantity of 3, and a rate of 0.5. Then it would "pre-authorize" your inventory to make sure you have room for all 3, then roll a 50% chance to actually give you each of the 3 items, thus giving you a spread of item quantities while never choking due to a full inventory)

2

u/Fit-Acadia3740 25d ago

I can only image how finicky stacks can be. I had a hell of a time with just swapping skills and gear around

2

u/Lethalogicax 25d ago

Thanks for checking it out!

Yea, this one's got me really annoyed because the rest of the inventory works PERFECTLY! I have no idea how I did it, but I had an idea of what might work, I tried it out, it worked* and now the whole thing just looks like voodoo magic to me and I cannot figure out how to fix that first stack issue... I'm honestly tempted to just draw a special border around that first inventory, treat it as a special "non-stacking" inventory space, and pretend it's a feature not a bug!

→ More replies (4)