# How do I handle a two-part travel system with a simple inventory in Defold?

**URL:** <https://forum.defold.com/t/how-do-i-handle-a-two-part-travel-system-with-a-simple-inventory-in-defold/83638>\
**Category:** General\
**Created:** [December 3, 2026, 10:31pm UTC](https://forum.defold.com/t/how-do-i-handle-a-two-part-travel-system-with-a-simple-inventory-in-defold/83638 "2026-12-03T22:31:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolaninvelis619](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/w/b9e5f3/32.png) [@wolaninvelis619](https://forum.defold.com/u/wolaninvelis619)\
**Post date:** [December 3, 2026, 10:31pm UTC](https://forum.defold.com/t/how-do-i-handle-a-two-part-travel-system-with-a-simple-inventory-in-defold/83638/1 "2026-12-03T22:31:24Z")

</div>

I’m working on a small 2D game where you pick up a stroller and an infant car seat as separate items, then combine them into a travel system. My player holds one item at a time, and each item has its own weight and size that affect movement speed. I’m not sure how to structure the inventory so combining works without letting items disappear or duplicate. I’ve tried a table of item IDs and a separate ‘combined’ flag, but when I remove the stroller from the inventory after combining, the car seat sometimes stays and sometimes doesn’t. I only need this for a single-player home project, not anything big. What’s a clean way to model this in Defold’s Lua without running into race conditions? I’m also curious if anyone has a simple pattern for swapping the visual of the combined item back to its parts.
