CloudDealer's Recent Forum Activity

  • Thank you for the quick and easy response. I'll see if I can figure this out soon. Means a lot that you were chill and helpful at the same time!

  • Go here for further stuff. I simplified it down to just my problem.

    construct.net/en/forum/construct-3/how-do-i-8/change-stringvariable-per-169309

  • Hope this give a grasp about tokenat:

    https://www.dropbox.com/s/jdxs2r6hf0t0obc/npc_dialogue.capx?dl=0

    Thank you, but I already have a dialogue system set up? It's JSON based. What I NEED is to be able to automatically pick an object once it's interacted with or called.

  • Okay, I understand this perfectly, but I need a guide as to exactly where to put this loop on my project. **Also, could you explain it in a way that could relate specifically to picking/UIDs?**

  • Since my first post had a large project with way too much, I've simplified it down to just the tutorial + my issue. I'm a visual learner, so if you could send screenshots with your explanation, that'd be great.

    Original Post:

    construct.net/en/forum/construct-3/how-do-i-8/change-variable-per-copy-169181

    Project Link:

    drive.google.com/file/d/1aVJyr-oKVTPCgqKzp68IVrPWmOKcaAds/view

    Screenshots:

  • In Construct, you need to understand the concept of "Picking".

    Picking is used to specify which instance of the object you want to apply your action to.

    If you apply your action without Picking an object first, the action will be applied to ALL instances of this object.

    For example, check this simple code:

    Here, we did not Pick any instances. So ALL the Sprite objects will have their Variable1 value set to 166556.

    But what if we want only ONE Sprite to have its value set to 166556, while the rest of the Sprite objects remain the same?

    Here we need to use a Picking condition; which will tell Construct which one of these Sprite objects we want to change.

    Notice we added a new condition that starts with "Pick". You can find these conditions under the System plugin, under a category named "Pick instances".

    There are different types of Picking, each one is useful in a specific situation. You can check the manual for detailed explanation. But in general, each one offers you a different way to specify objects.

    Additionally, some objects offer you additional ways to Pick instances:

    One important thing to keep in mind when Picking instances, is that once you pick something, all the sub-events, sub-actions, and sub-conditions will only focus on the picked instance.

    You can think of Picking as a "Filter". It filters instances of the object so you can only focus on a specific group of them.

    For example, if you have 100 Trash Cans, and you want to do something for the Cans in the lower left corner of the map. Then you can filter the instances (using Picking!) to only choose the ones with X and Y within the lower left corner area.

    Additionally, you can apply multiple filters. So you can Pick a group of objects, then add a sub-condition and add another filter. Now the first filter will be applied to ALL instances. Then the second filter will be applied to the RESULT of the first filter.

    So if you have 100 Trash Cans, and the first filter picked 10 out of them, then the second filter will choose from the 10, NOT the 100.

    So for your specific case, I understood from earlier replies that one part of your project is applying an action to ALL instances of the object. So, you can probably guess by now that you need to -somehow!- Pick the specific instance you need to change.

    In the end, Picking can be considered an advanced feature, and it really caused me confusion many times during my time with Construct! But once you experiment with it, you will find out that it gives you some quite powerful tools to control your game!

    Good Luck!

    Is there a way to pick multiple of the same object, even if they have different UIDs but different variables? So I don't have to individually hardcode each one?

  • How do I post a link to it?

    Google Drive, Dropbox, etc.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Geez, that's a lot. I can't really tell what's going on.

    Could you send screenshots? Or a project link?

  • I tried following some of the problems you ran into, saw some issues the others pointed out too. A major problem with the requests you perform is the sheer size of the project. I opened it, and saw like 20 tabs open .... yikes.

    Suggestion: trimming down an example, to pin point out a problem, often helps a lot to understand whats going on yourself. And from those willing to help, you will get a lot more feedback if the request and information is manageable, in bite size chunks.

    There are some basic fundamental flaws in how you looks at some values and variables.

    For one, I noticed that you used a defined local variable in a function, in the condition, before any information is set to it. Like this a couple other small mistakes. Understanding what your doing in a large scale project will save you heaps and heaps of frustration.

    Taking on a big project is admirable, but is bound to fail if you do not understand the basics of the tools your working with.

    Thank you for the response! I've been trying to understand the basics of construct, and I've read quite a bit of the manual, is there any tutorials or tips you have/recommend? I'm up for anything.

  • I did that, but sometimes when I shoot the bullet, it just disappears.

    The problem could be that you're not resetting the variable upon the destroy.

  • I did that, but sometimes when I shoot the bullet, it just disappears.

    Send the project, I'll take a look at it in the morning.

CloudDealer's avatar

CloudDealer

Member since 7 Mar, 2021

Twitter
CloudDealer has 1 followers

Connect with CloudDealer