playMaker

Author Topic: Creating an Action  (Read 3457 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Frame Tale Studios
Creating an Action
« on: February 03, 2015, 07:14:09 PM »
Are there any tutorials on creating actions for playmaker? I tried the custom action wizard but I got nowhere...
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Creating an Action
« Reply #1 on: February 04, 2015, 05:19:07 AM »
If you're going to create actions you still have to code them (generally in C#). I usually find a similar action and start from there so I don't have to write the whole class/method structure and tooltips out again.

sebaslive

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Frame Tale Studios
Re: Creating an Action
« Reply #2 on: February 04, 2015, 08:33:27 AM »
I tried coding something out that I thought would work but when I put it into playmaker I got too many errors.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Creating an Action
« Reply #3 on: February 04, 2015, 09:02:26 AM »

sebaslive

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Frame Tale Studios
Re: Creating an Action
« Reply #4 on: February 04, 2015, 10:17:41 AM »
And maybe a series for more advanced level tips?
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Creating an Action
« Reply #5 on: February 04, 2015, 10:26:15 AM »
It's really just basic coding. The API reference is here on the wiki:

https://hutonggames.fogbugz.com/default.asp?W127

After you understand C#, that page makes a lot of sense.

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: Creating an Action
« Reply #6 on: February 04, 2015, 01:25:47 PM »
or a javascript tutorial would be nice.  Wink, wink, nudge, nudge...

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
    • View Profile
Re: Creating an Action
« Reply #8 on: February 04, 2015, 11:39:13 PM »
I mean I know javascript but would like to know how t use it make actions.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Creating an Action
« Reply #9 on: February 05, 2015, 05:40:27 AM »
If you already know JS then you could probably just read up on converting C# to JS to recognize the differing syntaxes and start creating your own actions fairly easily. The callouts for the variables are the only part that you would need to figure out, beyond that you should be right at home using JS in the action as there isn't much below that which you can't do with the same code you would use in normal scripts.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14051
  • Official Playmaker Support
    • View Profile
Re: Creating an Action
« Reply #10 on: February 05, 2015, 08:19:08 AM »
Hi,

 I agree, we need a proper series on making actions, getter, setters, accessing public, static variables, hooking up to various types of events, etc etc.

 Ideally, I would like the dust to settle on 1.8 cycle, have it out of the door, bringing everything in par with the greatest new additions 1.8 will bring, and then do a serious effort on documentation for action development. I would like this effort to be hosted by the Ecosystem, because if more and more people are doing custom actions, we must encourage them to build good and reusable actions that they can share and be credited for it, so that other members can benefit from this great dynamic. This is true for individuals but also for publishers willing to provide PlayMaker support.


 Bye,

 Jean

sebaslive

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Frame Tale Studios
Re: Creating an Action
« Reply #11 on: February 05, 2015, 09:41:12 AM »
Cool, I think thats a great way to encourage everyone to help out with the ecosystem.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez