Inventory!

Wow! Can't believe it but I made an Inventory system in two weeks. An hour here and an hour there.
Glad I made it from scratch as I know exactly how it works and all it's limitations.

For one thing the 'Inventory slot' actor has to be in front of collectables or they'll stutter interpolating into
the drop zone.

Also the items will not be nicely placed along the item tray if interpolation duration is less than .5 or the
player clicks on items in quick succession.

There are probably quite a few workarounds or 'hacks'. In other words I don't think/know that the code
is properly refined. >>Like my first php file Gasp!

Other than that ... it works! I welcome anyone having a look and using the code, if any refinements are
suggested. Fantastic! The images are cra.. / not very good. Time for that later.

Have a look Here >>

Comments

  • harrywatsonharrywatson Member Posts: 61
    Whoops! Here is the Blank target Here (leave me on this page please) >>
  • harrywatsonharrywatson Member Posts: 61
    Found one massive bug. When you click on the stick, it highlights > door ready.
    click off the stick to the card. > door still ready. Opps! Fixed. Now I have two
    text displays overlapping. Lesser evil. Lot's to do yet. Clean up tables, post values to tables, refining - yes refining. I'm looking at a year before my first game. Hooray!
    That's not long away.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It looks like it's working pretty well. Inventory systems aren't the easiest thing to code, so nice work. Post here if you have questions.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • harrywatsonharrywatson Member Posts: 61
    Your welcome, you'll notice it's a bit messy, tables that don't do anything yet etc.
    I've left the inventory slot visible so you can see what it's doing. You could use an image or scrub it out. You'll notice if you deselect the stick the door still works. You can fix it in the door actor with another 'game to self' rule. attribute game.DoorOpen = 0 change attribute self.DoorOpen = false. It would be easy to hide and show the inventory but that's not something I want to do at this stage. Rather I'll probably extend the item tray the full length of the scene and put more information in there such as how many footprints have been followed. I like those point and clicks where all conditions need to be met in order to continue. Rather than clicking all the way backwards through multiple scenes because you've missed a stupid talisman. If you do any refinements it would be nice to know. If anyone uses it in a game I'd be delighted. I have a lot of questions tatiang too many in fact. But here is one: How different are Inventory codes? I've only seen two others apart from my own and they are completely different but then they do different things.
  • harrywatsonharrywatson Member Posts: 61
    Thanks tatiang. Actually I do have a question. My inventory slot is spawning and destroying itself goodness knows how many times as it moves along. How would I
    limit the spawn instance?
  • BasGoodboyBasGoodboy Member, PRO Posts: 310
    Nice work mate. Just nice. Works smooth. Only the stick sometimes gets to a bit weird position in the inventory.

    Goodboi Gamestudios | Monster Jumper now on the App Store

  • harrywatsonharrywatson Member Posts: 61
    Thanks. Yes I hope to fix it. The moving slot takes too long to get out of the way.
    Hang on I'll just see if I can do that now... Wow! The inventory slot spawns itself 103 times when an item is added to the inventory! Can't work it out just at the moment.
    I've tried 3 ways to limit my spawns. No luck so far. I'll post the fix when it's done.
    At least I can now see what's happening.
  • BasGoodboyBasGoodboy Member, PRO Posts: 310
    edited October 2013
    @harrywatson don't put efford in it for me, I designed my own inventory system for my project. It was more a compliment ;-)

    Goodboi Gamestudios | Monster Jumper now on the App Store

  • harrywatsonharrywatson Member Posts: 61
    Thanks :^)
Sign In or Register to comment.