Please tell me what I'm missing here?

0 favourites
  • 10 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • I'm trying to make it so that the player can't wear both the same clothes and the other at the same time, and specifically I have a problem with the fact that when I have "Gorka_Pants" pants on, he can still wear "Hunt_Pants". how can i fix this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe try:

    On F Pressed:

    Gorka_Pants "is Not Equal" = 1

    ----- Set Gorka_Pants = 1

    ----- Destroy Gorka_Ground

    ----- Spawn Gorka_Pants

    ----- etc...

    On Q Pressed:

    Gorka_Pants "is Not Equal" = 0

    ----- Set Gorka_Pants = 0

    ----- Destroy Gorka_Pants

    ----- Spawn Gorka_Ground

    ----- etc...

    Another thing is make sure you use the trigger "on Key pressed" instead of "On Key is Down" because on key is down keeps running while the key is down, so can run multiple times.

    And on Key pressed trigger just runs once

  • Yes, it works for me, the problem is slightly different

    I can put on both hunter pants and gorka pants at the same time, after which it removes only the first pants that I put on, after which it blocks the second pants and I can no longer not put them on and take them off

    this is how it looks in game:

  • I'm trying to make it so that the player can't wear both the same clothes and the other at the same

    I can put on both hunter pants and gorka pants at the same time,

    Sorry is not really clear what you are trying to achieve as both statements contradict each other and are confusing:

    But looking at your pictures and your old events, it looks like you have problems swapping long pants that you find on the ground, is that right?

    Example:

    On "F" Pressed & is overlapping pants on the ground -----> Wear it?

    If so, what happens if you already wear pants already?

    On "Q" Pressed & If is Wearing pants -----> Drop it?

  • I don't quite understand what I should do

    I just want to make it so that when the player has equipment, he changes the old equipment to the new one and vice versa

    And I also use a translator, because of which you may not completely understand me, as I do you

    But no matter what happens with that translator, I really need help and I will try to follow your advice

  • I don't quite understand what I should do

    I just want to make it so that when the player has equipment, he changes the old equipment to the new one and vice versa

    And I also use a translator, because of which you may not completely understand me, as I do you

    But no matter what happens with that translator, I really need help and I will try to follow your advice

    Hi

    Yes, the translator can sometimes be inaccurate.

    I am still not really sure how your equipment works, as it can vary a lot depending on your needs and we dont have all the info.

    If I have to guess just by looking at your pictures alone:

    1-First picture you are not wearing Pants

    2-Second picture you Pick up pants1 from the floor and wear it

    3-Third picture, you pick up pants2 and wear it but you do not drop anything so it looks like you need to store the pants in an inventory

    4-Forth picture, you drop the pant2 that you currently wearing and then you put on any pants that you had in your inventory which in this case is pants1

    If that is correct, there are many ways to do inventories.

    Here is one example see if it helps you:

    https://www.dropbox.com/scl/fi/yxnkl8bbsn290emgkgip3/Inventory2.c3p?rlkey=2y86mbgnxcv8eflzt13t5agif&dl=0

    If this is not what you are looking for, then one possible solution is that you could explain it in your native language and then add a translation in English too, the forum allows that as long you post the translation in English. By doing that someone who speaks the same language could help you much quicker or at least will help in translating it to English.

  • So I think that the time has come to deal with the inventory. but I have the same feeling as if I'm trying to eat a bigger fish than I can (metaphor).

    You have dropped a rather interesting specimen. and it made me think that I can also send you what I did and supplement my project with comments.

    dropbox.com/scl/fi/ldd0msm7rfopbxp8fh7ix/MBAZ.c3p

    In fact, I have been struggling with the inventory for quite a long time, it feels simple at the same time, but when it comes to practice, it is as if I am stuck in an invisible barrier that I cannot cross.

  • So I think that the time has come to deal with the inventory. but I have the same feeling as if I'm trying to eat a bigger fish than I can (metaphor).

    You have dropped a rather interesting specimen. and it made me think that I can also send you what I did and supplement my project with comments.

    https://www.dropbox.com/scl/fi/ldd0msm7rfopbxp8fh7ix/MBAZ.c3p?rlkey=5muo60eu6iwo1pvjj5rf0o7bv&st=1fjf50c2&dl=0

    In fact, I have been struggling with the inventory for quite a long time, it feels simple at the same time, but when it comes to practice, it is as if I am stuck in an invisible barrier that I cannot cross.

    I would recommend you to look for tutorials on inventories and choose the one that you think you could follow.

    If you are visual learning then maybe you could also look at Youtube tutorials and follow them step by step.

    If you spend some time learning you should be able to make the inventory that you envision.

    Some tips that could help you, though there are different ways you could approach this:

    -You can pin the slots to the inventory panel by Hierarchy. It will be easier if you make each slot tiles single so you can pick them easily.

    Or you can use a tilemap.

    -To Pick the different slots easily you can add an instance variable like for example "Type" and then you can set the slot to your different name types like (Hunting pants, Gorka pants, etc...)

    -Add the (Drag & drop) behaviour for the items that you place in the slots so they can easily drag and remove them from the slots.

    You may need an Array as I did or may not, depending on how complex you need it. For example, how do you know you have free tiles etc... You can do it via Boolean on the tiles "Ocupaid" and then set it to (True/False) or you could use Arrays.

    As I mentioned, these are just ideas as there are different ways you could do the same thing.

    The best thing is as I said earlier, choose a tutorial that matches the style that you want for your inventory then follow it, as normally they will show you everything you will need. Then you can start incorporating your own ideas once you have an understanding of how everything is working.

    Good luck.

  • Yes, thank you. But in fact, I am already quite demoralized, it is very difficult to find something suitable for C3, and the guides that are available for C2 are not always suitable either.

    for myself, I spent quite a long time:

    dropbox.com/scl/fi/lmo81e4rngd5i7dh1t41i/MBAZ.c3p

    I tried to do everything according to the guide (A series of guides that lasted 2 hours at a time) But when the time came that the item should appear in the inventory, I faced the problem that I could not pick up and put items in my inventory.

    youtube.com/watch

    I believe that the point is that the guide suggested making two inventories, one for "Potions" and the other for "Swords". If you don't mind, you can point out my mistakes here

    In fact, I feel much better when I can talk to a person.

    And now, I have finally separated myself, I want my inventory to be visualized.

  • Yes, thank you. But in fact, I am already quite demoralized, it is very difficult to find something suitable for C3, and the guides that are available for C2 are not always suitable either.

    for myself, I spent quite a long time:

    https://www.dropbox.com/scl/fi/lmo81e4rngd5i7dh1t41i/MBAZ.c3p?rlkey=yky6u8litck5gf5aaux9s29hv&st=usdovz84&dl=0

    I tried to do everything according to the guide (A series of guides that lasted 2 hours at a time) But when the time came that the item should appear in the inventory, I faced the problem that I could not pick up and put items in my inventory.

    https://www.youtube.com/watch?v=cNxjdxbRpIg&t=1s

    I believe that the point is that the guide suggested making two inventories, one for "Potions" and the other for "Swords". If you don't mind, you can point out my mistakes here

    In fact, I feel much better when I can talk to a person.

    And now, I have finally separated myself, I want my inventory to be visualized.

    Hi

    I definitely dont have the time to check some else projects I'm afraid, this is quite a lengthy task that will take several hours if not days, and it's always an endless back and forward because new questions always arise, which is time that I dont have even for myself.

    I have done my bit, I will leave it for any other user that has the time and that wants to jump in and give you a hand. But keep in mind that all the users work for free and normally the forums help should be for (Quick Questions & Quick Solutions) that do not require too much involvement. So if you dont find any users then this could be one of the reasons to keep in mind.

    If you dont find any users consider paying an hour or so to a Freelancer who can sit with you check your project and give you some coaching while you finish your inventory. And so you can ask questions and any concerns, which I think is the one you need.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)