playMaker

Author Topic: Adding Expression support  (Read 1252 times)

aliessmael

  • Playmaker Newbie
  • *
  • Posts: 28
    • View Profile
Adding Expression support
« on: February 02, 2012, 09:50:46 AM »
Hi.
let us say i need to make this expression in PlayMaker
variable1 = (5 * variable2 + 1/ variable3) - 6        for example
it is easy to do that in scripting but in PlayMaker it is very difficult.

what if FsmFloat for example support variable , so i can type the expression directly as it is

I think this feature will speed and simplify the work very much.

Thanks

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Adding Expression support
« Reply #1 on: February 02, 2012, 10:12:52 AM »
I agree. We plan to add support for this. It will probably be a Math Expression action where you can type an expression referencing PlayMaker variables.

aliessmael

  • Playmaker Newbie
  • *
  • Posts: 28
    • View Profile
Re: Adding Expression support
« Reply #2 on: February 02, 2012, 12:55:36 PM »
Make math expression action is good idea, but what if you make it work every where

if you have any action which has float member.
right now you can write number directly .
what if this member accept expression instead of constant number only

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3207
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Adding Expression support
« Reply #3 on: February 02, 2012, 02:09:06 PM »
That's a cool idea. But I can't say for sure how it will be implemented until I look into it more...

BTW, does anyone have any experience with this math parser:
http://www.lundin.info/mathparser.aspx

Or any other free math parser library?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Adding Expression support
« Reply #4 on: February 09, 2012, 12:19:34 AM »
hi,

 That would really be a huge leap forward!

 Bye,

 Jean