Weird behavior

This forum is currently in read-only mode.
  • Hey guys,

    In my game I'm trying to code an inventory system. Items can be picked up with the mouse when clicked and dropped when a click is made with an item on the mouse. A pic of the 'Drop' events is attached.

    http://freeebayimagehost.com/images/nuh ... qccktg.png

    When the item with ID OnMouse is not over an equipment slot and it's dropped, the code shown under that condition should run. For one of the items, it works fine. For all other items, the quantitytext is never destroyed even though the system message pops up with the correct private variable IDs for item and quantitytext. In addition, the Enable and Disable of the two groups never happens. If I click "OK" on the message boxes, it does work, but if i use spacebar on them to click OK, or if i take them out entirely it doesn't work. Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ahh figured it out. Apparently the 'Drop' click also counted as a 'Pickup' click for the item that was being dragged on the mouse. Weird because the 'Pickup' group is disabled when the mouse click is made, and it is the mouse click that enables it so i didn't think it would do that. The items that worked happened to have transparencies at the mouse cursor so they didn't get picked up

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)