Grajo's Forum Posts

  • Hello i got problem with player pathfinding. Randomly, the character chooses the upper part of the area, and stops there. I don't know what it is, there are still enemies around the area.

    Pathfinding code:

    In addition, I'm uploading a debug recording, with the option for the player where is visible Pathfinding behaviour

    youtu.be/Y-pLvOp9AQM

  • So first i need to create new condition, if item is in inventory (boolen - new_item set True) next item overlapping itemholder_weapon go to invslot, and item overlapping invslot with this VAT go to itemholder_weapon? Idk if i good understand :)

  • Hello

    I create inventory system, but at this moment i got problem with item swap, exactly, the point is that when an item is dropped from the enemy (e.g. a sword) and I would like to replace it with the weapon currently held in my hand i cant and the object overlaps the object. I try to fix that from 2 days and i got bad results :P

    Any idea how to replace items between inventory and equipped ?

  • Thanks lionz for responding, but i fix that with setting value on start = 0

  • Im doing something wrong.. I set player armor like u said (player.armor+items.armor) counter dosnt stop, and player armor variable is 0 and when i start game it is 15

  • So i need create variable for item items.armor and set player armor variable as player.armoe + item.armor Yes?

  • Hello i create eq and inventory system for my game, but i Got problem.

    When player equip chest armor he Got armor but armor caunter dont stop... And still adding armor and i cant stop this.

    youtu.be/v8P7t6tHpZc

  • Solution was sending a create items to layer where was inventory :)

  • If I can't find a solution to the problem, I'm sure I'll look into Array.

    Anyone now why thats happened ?

  • I've started working on the inventory system for my game.

    In the "INVENTORY" layout there are invSlot objects, in which items should appear after creating the object (when we kill the enemy). Well, they will appear, but unfortunately in this way:

    When I turn on the Inventory window, unfortunately they are not there, they are only on the layout where the hero is currently located. Would anyone have an idea to force the created items to be on the Inventory layout?

    Inventory logic

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • And this is what i want too achive... Thanks dop2000 :)!

  • Hi

    I've been thinking lately how to create a loot system. I would like a given monster to drop items assigned to it. While it's easy to do, after creating families for enemies and items, I don't know how to combine it with each other. I tried creating different variables for item families or enemies but still nothing.

    For example, a Goblin should drop a sword when killed, so for sword I created a variable ID=0, but now how to force the game that when the goblin's life is equal to or less than 0, it creates an object after the item's ID, i.e. in this case ID=0, which is a sword.

  • Yep that work, thanks ! :)

  • I try something like this but still dosnt work, what im doing wrong :P?

  • Give them solid behavior ?