NedSanders's Recent Forum Activity

  • Hi! I'm using Arrays to randomly generate planets in a solar system.

    Essentially, it's just a For Each loop that goes through each planet and randomly picks from traits stored in an Array. It'll start by picking the planet type (Ice Planet, Desert Planet, Etc.), then move onto how resource rich it is (Barren, Moderate, Abundant, etc.) and so and so on. To make certain traits more rare, all I've done is added more of the same options to the column (i.e. 'Super-Abundant' appears only once, so the chances of it being picked at random are lower).

    It's great fun but very simple and I'd like to be able to affect the probability of outcomes based on previous selections. For example, if it's a Desert Planet, I want the chances of it being resource rich to decrease. If it's has abundant resources, I want it to be more likely to be habited - or for the society to be more wealthy, etc.

    It's an interesting challenge and I'm not sure I know what the cleanest solution is. I'd love to hear how others would approach this and how you might solve it.

  • construct.net/en/game-assets/addons/minimap-1560

    I've been trying to implement a minimap into my game for some time and have been struggling with it. I noticed this addon and it caught my attention but I'm hesitant for two reasons: a) the asking price seems a bit ridiculous and b) I've looked through a few of these peoples' addons and most of them seem to offer functionality (for a similar price) that could easily be achieved in vanilla Construct.

    So, in your opinion, is the minimap plugin worth it or should I save my money and try to figure it out myself?

    Tagged:

  • I'm loving the flowchart feature. A few people have pointed out the inability to loop nodes back on each other and I'd just reiterate this - for dialogue trees, behaviour trees, etc. this is a pretty critical functionality. I've played around with workarounds but they're clunky and not really sustainable. Is it safe to assume this is in the works?

    Additional question: Is it possible to have multiple tags per node? It doesn't appear so but I may be missing something.

  • > would a possible solution be to restrict this to just being able to trigger Functions in nodes?

    I think that is already possible with 'On tagged node change' in the Flowchart Controller object. Give the node a unique tag, and then that trigger fires when the node is reached, where you can then place any special logic for it. (Correct me if I'm wrong @DiegoM)

    Ah, thanks for the clarification. The Flowchart feature is bugged for me so I haven't been able to try it out without a crash - I'm just going off what others are reporting.

  • On the seemingly controversial topic of enacting logic within nodes, would a possible solution be to restrict this to just being able to trigger Functions in nodes? That way, all logic can sit in the Event Sheet and the nodes would just reference it, instead of creating 'pseudo event sheets' or resulting in the flowcharts competing with Event logic (which I fully agree is something to be avoided).

    Interested to hear your thoughts on this, DiegoM?

  • You do not have permission to view this post

  • I put together a rough json-based dialogue system that uses chatmapper exports a while back. I gave up around the time it came to implement complex condition handling. I did manage to get basic logic down (check condition, hide/show option, etc.) but it quickly became clear that what I wanted was possible but would take a hell of a lot of work to get running.

    I plan to use a more stripped down version to handle basic dialogue but sadly I think the Disco Elysium style deep dialogue system I dreamed up will have to wait. Ashley has made it pretty clear that a built-in dialogue system is way beyond scope and I think it would be one hell of an undertaking to rustle up a plug-in for this purpose. But like I say, not impossible. The moment someone does, they have my download.

  • You do not have permission to view this post

  • "Mesh distortion" - you can see it clearly in this example.

    Thanks - I had a look but it seemed more complex than what I needed. I think I may have falsely assumed that simply setting the position of a mesh point with the set mesh point function was a simple thing to do.

    I'll try to break it down and see how easily I can replicate in my project.

  • Mesh points are relative to the position, angle and size of the object. That can be useful or inconvenient depending on what you want to do.

    If the sprite isn’t rotated then this should work to get an x,y position on the layout converted to a mesh point location.

    MeshX = (x-sprite.x)/sprite.width

    MeshY = (y-sprite.y)/sprite.height

    Much appreciated? What if it is rotated?

    What I'm trying to do is create a sort of cursor made up of a circle that follows the mouse and a kind of beam that is fixed to the player but has it's width set to the distance between them and the cursor, which it is always pointed towards. I thought it would be nice to use meshes to ensure that the end corners of the beam are always set to the height of the cursor. (apologies if the explanation doesn't make sense)

    Is this not possible since the beam will almost always be rotated?

  • Hello!

    I'm trying to something frustratingly simple: set the x and y coordinates of a mesh point for a sprite. To try and test this, I've set up a square sprite with a 2x2 mesh grid and I want one of the points to be set to the mouse position. However, I'm not able to do this without the mesh point going infinitely off the screen. Is it possible to simply set the position of a mesh point? I feel like this should be possible. What am I doing wrong?

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Chat Mapper is a really powerful tool for handling branching dialogue. You can create a dialogue in it complete with logic and variables, then export it as a JSON file and run it through a plug-in for Unity, Unreal or a number of other engines. However, no such plug-in exists for Construct so everything must be done manually.

    I’ve started building a game that can read Chat Mapper JSON files and parse them as interactive dialogues. So far, I’ve only implemented basic UI, option selection and branching but I’m happy with how it’s shaping up. The basics are all there and it pretty much functions. The next thing I want to do is implement logic - specifically conditions.

    Chatmapper stores all variables relating to the conversation in a UserVariables array. Rather than keeping these as variables within Construct, I have to refer to them within the Master JSON file if I want to check them or change them. The challenge comes from how I use the information provided to do this.

    Normally, Chatmapper uses Lua to handle its logic. You can enter something like “Variable["variable_name"] = true” into the Script Editor field and the plug-in will take that information and automatically adjust the variable. Obviously, I can’t do this within Construct - the entry will just come up as a string within the dialogue node array but Construct doesn’t know what to do with it.

    Does anyone have any suggestions for how I can use these strings to a) determine whether or not options will show up depending on variables and b) change variables based on information within the JSON? I've got a couple ideas but I really don't have a programmer brain and I wanted to get some advice before I jump into an unnecessarily complicated solution and create a million future problems for myself.

    Alternatively, Chat Mapper allows you to create custom fields within the export. These can be numbers, text, booleans or any number of things. Is there perhaps an easier way to achieve this using this functionality?

    Any help or suggestions would be hugely appreciated. I’ve attached a link to the project below so feel free to poke around but I’m also happy to answer any questions.

    drive.google.com/file/d/19inz60JSCYuGl_3iu7xShrjdVPqdwWlQ/view

NedSanders's avatar

NedSanders

Member since 31 May, 2022

None one is following NedSanders yet!

Trophy Case

  • 2-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

7/44
How to earn trophies