Creating formulas and tracking variable values

Forums General Discussion Creating formulas and tracking variable values

This topic contains 3 replies, has 2 voices, and was last updated by  Gavalakis 6 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2326

    robot
    Participant

    Hello,

    I recently acquired two of your assets (nodeCanvas and floCanvas), and am trying to understand how to work with them, but I have a question about floCanvas:

    1. Can I use floCanvas to create formulas (for example, float variable c == 100 – (a + b): 100)?

    2. And if so, is it possible using the flowCanvas (or together with the nodeCanvas) to make the calculation using the formula at a certain moment?

    3. For example, I randomly choose from 4 events: a, b, c, d. For example, in the playmaker, you can set a random events with a given probability for each event (in playmaker this value is from 0 to 1 float type). So, is it possible to randomly select an event using flowCanvas or nodeCanvas (or them together), but the probability of choosing each of them will be equal to each individual float variable (for example, the probability of an event a == is equal to the float variable “aRandomness”)?

    #2327

    Gavalakis
    Keymaster

    Hello and thanks a lot for getting both assets.

    Please let me address your questions 🙂

    1. Do you mean formulas /expressions by “writing” them down, or by using several nodes connected together? Of course, it is possible with nodes, but it is not (yet) by writing down the expression. I have however worked and have an early version of an Expression Node already made (but not published). I can send you the package to try it out if you want of course though 🙂
      ExpressionNode
    2. “When” something is happening in either Node or Flow Canvas, is fully related to the system. For example, in NodeCanvas, Behaviour Trees, are making things happening in a different manner than FSMs, or FlowCanvas flowScripts. FlowCanvas flowScripts, are fully event-driven, so you could make something happen based on some event which can come from a really lot of places (like for example input, trggers, collisions, c# events, unity events etc). Is that what you mean?
    3. NodeCanvas Behaviour Trees, do have a node called “Probability Selector” which works prety much like you say. FlowCanvas on the other hand, does not have such a node, but I think it is a really good addition to make actually 🙂 I will definetely add a Probability node in FlowCanvas as well.

    Please let me know on the above and if you need any further information.

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #2330

    robot
    Participant

    Hello,

    thanks for the answer. Yes, if you can, I would like to try Expression Node. (will i have to reinstall Flow Canvas?)

    As for 2 and 3 questions, I drew a picture where I tried to explain what I would like to implement:

     

     

    For this case, I better use in the NodeCanvas FSM or BehaviorTrees?

    Attachments:
    You must be logged in to view attached files.
    #2333

    Gavalakis
    Keymaster

    Hello again and sorry for late reply.

    I have attached for you here the Expression Node (a unitypackage). Please note that this is only a beta/early version of the node.

    Thank you for the extra information on the Probability node. I will implement such a node in FlowCanvas in the next few days and will also be there in the next version. While you can use NodeCanvas Probability Selector, from what I see you would prefer using FlowCanvas (with the new Probability Node when it’s ready) though :).

     

    Let me know what you think regarding the attached Expression Node by the way.

    Thank you!

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.