Grajo's Forum Posts

  • 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

  • Try Construct 3

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

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

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

  • 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