Grajo's Forum Posts

  • Hi everyone.

    I've been trying to figure out what I'm doing wrong for a few days now, and I still haven't gotten an answer :P

    I'm working on an RPG inventory, I created a DRAG & DROP system that works, but there is one big BUT.

    All slots in the inventory are the same Inv_Slot object (highlighted in red), I change the appearance of the slots that are supposed to be slots for weapons, shields, etc.

    What I was able to achieve looks like this, and it works:

    However, a problem arises when I want the right type of equipment to go into the right slot, for example, it's a weapon that is known to go into a weapon slot, when you put it into another slot it goes back into the inventory, or when you put the wrong type of weapon into a slot, the same thing happens.

    I've tried many solutions but can't figure out how to solve it. If someone would be so kind and suggest what I am doing wrong and guide me to the right way of thinking.

    Thank you

    Tagged:

  • Hi

    I am working on an Affix system of items for the game. I have a problem with reselecting the same affix.

    For example:

    When an item is created (after killing an enemy) a roll is enabled, for example random(1,10) for Affix_1 and Affix_2.

    Now how do I prevent the roll for Affix_2 from being different from the one for Affix_1, for example, if Affix_1 drew the number 2, I would want Affix_2 to have every number in the random(1,10) range except the number 2.

  • Hello

    I Work on the equipment system in the game, on the drag and drop mechanics. What I've already managed to do is that I flip the item between the inventory slots, and when the slot is full then the item returns to its old position, now I'm working on making the item not return to the old place but swap places with the currently located item. It saves such values as the position of the raised item, its UID and the slot number from which I raised it, and I've been struggling with this for a few days now but can't find a solution. Maybe someone could help and direct me :)?

  • I dont know if i good understand u, but i create this object on my item:

  • Hello how can i stop these windows from going off screen? I mean Item stara window, they have diffrent size dependent from Item rarity.

  • Yea, you have right, now i know why thats happened....

    Thanks lionz again :)

  • Hello

    I work on mobile game (idleRPG) and i got problem with saving game, i use option save game from system, this is my code:

    I dont know why, sometimes when i turn on game again i "lose" my save and i cant load that.

    There is other better option to save game, or what i can do wrong and my saves gone :P?

  • Sandbox IdleRPG game.

    grajo69.itch.io/idlerpg

  • Yep, that was a problem :) a thanks lionz

  • Hello i try to do equipment visible on the character after wearing it, i create object but its duplicate every time i change layout.

    When i create Hero:

    When i change Layout: - object duplicate

    My code:

  • Ok solution with creating INV_Slots on one starting layout and make them global work.

    Thanks dop2000 :)!

  • I make them global but when i change Layout they duplicate.

    You mean for example put global inv sprites on they screen (make them invisible)??

  • Hi everyone,

    When I added the option to change the location of the hero, there was a problem with the inventory.

    When the player changes the layout, slots are deleted and recreated, thus losing their properties, such as whether the slot is full.

    I have inventories created on a separate layout, and in each location I add them as a layer.

    Any idea how to prevent destroying my InvSlots :)?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yea but player object have a lot of instance variables Its is good to "transform" them to global?

    And about dictionares, there is some tutorial because im looking on yt and dont find any thing about how to use them?

  • I create instance variables on sprites like player, items and enemy. What is best solution to keep that information betwen layouts?