playMaker

Author Topic: Adding Expression support  (Read 4418 times)

aliessmael

  • Playmaker Newbie
  • *
  • Posts: 26
Adding Expression support
« on: February 02, 2012, 11: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: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Adding Expression support
« Reply #1 on: February 02, 2012, 12:12:52 PM »
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: 26
Re: Adding Expression support
« Reply #2 on: February 02, 2012, 02: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: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Adding Expression support
« Reply #3 on: February 02, 2012, 04: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: 15500
  • Official Playmaker Support
Re: Adding Expression support
« Reply #4 on: February 09, 2012, 02:19:34 AM »
hi,

 That would really be a huge leap forward!

 Bye,

 Jean