#Help Me with inventory

17 messages · Page 1 of 1 (latest)

spark hemlock
#

this code might run into issues when you have more than one of those items in the room

#

it might be better to do the clicking handling in a handler object instead of the dropped items checking if they were clicked

var _Item = collision_point(mouse_x,mouse_y,obj_item)

if _Item != noone
  {
  //do the check for it's count here
  }

do you have any way to return how many of an item you have?

real sedge
#

i don't know if this is good way to do it or bad for my game

real sedge
#

i did now

#

but is this code good or bad for my game

spark hemlock
#

don't use other within that context
_Item. is the item you are interacting with

#

like if the item has a quantity variable you can check it with _Item.quantity

real sedge
spark hemlock
#

I am not sure what image_index = 0 is supposed to be checking for

real sedge
#

So when i drop item on ground I give it frame

#

when I press object if other.image_index = 0 do this{ }

#

Im using one obj for all these frames

real sedge
#

do you know how to add global.slotDrag to this function