Grajo's Recent Forum Activity

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

  • Try Construct 3

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

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

Grajo's avatar

Grajo

Member since 1 Mar, 2022

None one is following Grajo yet!

Trophy Case

  • 2-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

5/44
How to earn trophies