Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (2024)

Post reply

❤Follow Topic(7)

0 favourites

  • 8 posts

From the Asset Store

Math Game: Multiple Choice

$5 USD

Be quick and choose the right answer for the shown equation.

01smile
    • Quote

    I'm getting a lot of great use out of the flowchart plugin. I've been using multiple flowchart controller objects, some with instance variables and the like. I just noticed however that when you set one flowchart controller to use a specific flowchart, you're also setting any other flowchart controllers to use that same flowchart.

    Is this how the flowchart controller plugin is supposed to work? And if so, is there any functional difference to having multiple controllers vs just 1 seeing as they can handle multiple flowcharts anyway?

    Tagged:

    • flowcharts
    • instance
    • multiple
    • plugin
    • WackyToaster

      • Joined 18 Feb, 2014
      • Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (14)
      • 48 topics1,484 posts
    • 1

    • Quote

    It sounds like it was never meant to allow for multiple flowchart controllers in the first place. Could be an oversight, or it's just a bug. Since the big flowchart thread is unstickied at this point I'd just post a bug report and see what happens. Ideally I'd prefer that it's possible to have multiple flowchart controllers.

    • fedca

      • Joined 6 Jul, 2017
      • Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (19)
      • 31 topics449 posts
    • 1

    • Quote

    I agree, I was supper confused when I realized it about a week ago.

    I initially assumed Flowcharts controller hold their own data and state, just like a the JSON, Array and Dictionary Plugins. But it seems like flowchart controllers all reference the same current flowchart, they only differ in the state of that current flowchart.

    This makes it way less flexible, can't really have one flowchartController for npc dialogue (maybe you would even want to have a flowchart controller in a container of each npc, each referencing their own dialogue tree) and one for the progression system etc.

    With the current implementation it means you have to swap the flowchart all the time making it really weird imo.

    Tough I'm sad as it seems like it might be too late to change it due to backwards compat.

    • Quote

    It's by design: they work the same as Array and Dictionary, which is that you can put them in a container with another object to have per-instance state. So just like you can put an Array in a container with a Sprite to have per-instance array data, you can put a Flowchart Controller in a container with a Sprite to have per-instance flowchart state.

    • fedca

      • Joined 6 Jul, 2017
      • Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (29)
      • 31 topics449 posts
    • 1

    • Quote

    Array, dictionary and JSON all can have different data and state.

    FlowchartControllers all have the same data but a different state.

    Unless I am missing something.

    • Cody

      • Joined 31 Dec, 2012
      • Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (34)
      • 3 topics12 posts
    • 1

    • Quote

    This makes it way less flexible, can't really have one flowchartController for npc dialogue (maybe you would even want to have a flowchart controller in a container of each npc, each referencing their own dialogue tree) and one for the progression system etc.

    Yes I was trying to use a controller to handle narration text while having another one handle the AI states of multiple enemies at once. In isolation they work fine but trying to have the flowcharts do their thing simultaneously is turning out to be a headache.

    • Cody

      • Joined 31 Dec, 2012
      • Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (39)
      • 3 topics12 posts
    • 1

    • Quote

    It's by design: they work the same as Array and Dictionary, which is that you can put them in a container with another object to have per-instance state. So just like you can put an Array in a container with a Sprite to have per-instance array data, you can put a Flowchart Controller in a container with a Sprite to have per-instance flowchart state.

    So is this the only case where it makes sense for a project to have multiple flowchart controllers at one time? Trying to navigate flowcharts with different flowchart controller objects from the the event sheet is pointless?

    • oosyrag

      • Joined 20 Feb, 2013
      • Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (43)
      • 61 topics4,588 posts
    • 1

    • Quote

    There is often more than one way to go about doing any particular thing, some methods may make more sense for a certain person or project or workflow, so I wouldn't necessarily say pointless.

Post reply

❤Follow Topic(7)

  • 8 posts

Return to board index

Jump to:

Active Users

There are 1 visitors browsing this topic (0 users and 1 guests)

Is there a purpose to having multiple Flowchart Controllers? ★★★★★ (2024)
Top Articles
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 5255

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.