yevhen_m's Forum Posts

  • 2 posts
  • Here's how you can fix and optimize your code:

    Thanks a lot! I didn't really know what I was doing so the code had some unneeded parts. Your version works perfectly. BTW, can I also somehow make inventory contents persist between layouts?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Working on a survival horror game. This is actually my first time making an inventory for the player so I naturally ran into some problems.

    I've made a Frankenstein's monster from a bunch of tutorials and examples I could find.

    What I had in mind is to make a player collide with loot and destroy it, while putting the correct item in the inventory slot. When inventory gets full, the player stops destroying loot items on contact, so that they can pick it up later.

    The code mostly works fine, up until it needs to destroy the last item before inventory gets full. I'm not sure what causing this...

  • 2 posts