Grajo's Forum Posts

  • 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 :)!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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 :)?

  • 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?

  • Hello everyone!

    I was been working on an idleRPG game for a long time, in which the player develops his character, gains items and, as it happens in idle games, becomes stronger with every hour spent in the game.

    I've already done a lot of work, and the game is starting to look right. So it's time to work on changing the character's location, for example going from sewers to shelter, and then the player can choose the location they want to move to again.

    And here is where the problem arose, and I have no idea how to solve it.

    When changing the location (layout), the player loses all progress. Lose hiss statistics, items etc.

    working on layouts, things like equipment, player stats are in separate layouts, the player by pressing/clicking the appropriate button brings them to his screen.

    Now my question is, is it possible to fix this somehow at this stage, or will I have to create the game from scratch in a different way?