playMaker

Author Topic: Creating an Action  (Read 7920 times)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Creating an Action
« on: February 03, 2015, 09: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: 2511
  • Mender of the past
    • Cleverous
Re: Creating an Action
« Reply #1 on: February 04, 2015, 07: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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Creating an Action
« Reply #2 on: February 04, 2015, 10: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: 2511
  • Mender of the past
    • Cleverous
Re: Creating an Action
« Reply #3 on: February 04, 2015, 11:02:26 AM »
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Creating an Action
« Reply #4 on: February 04, 2015, 12:17:41 PM »
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: 2511
  • Mender of the past
    • Cleverous
Re: Creating an Action
« Reply #5 on: February 04, 2015, 12:26:15 PM »
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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

wheretheidivides

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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

wheretheidivides

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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Creating an Action
« Reply #9 on: February 05, 2015, 07: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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Creating an Action
« Reply #10 on: February 05, 2015, 10: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: 572
    • Frame Tale Studios
Re: Creating an Action
« Reply #11 on: February 05, 2015, 11: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