Playmaker Forum

PlayMaker Help & Tips => PlayMaker Tutorials => Topic started by: sebaslive on February 03, 2015, 09:14:09 PM

Title: Creating an Action
Post by: sebaslive 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...
Title: Re: Creating an Action
Post by: Lane 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.
Title: Re: Creating an Action
Post by: sebaslive 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.
Title: Re: Creating an Action
Post by: Lane on February 04, 2015, 11:02:26 AM
Yep, that happens. You need to study C#.

Scripting Reference
http://docs.unity3d.com/460/Documentation/ScriptReference/

C# Operators
https://msdn.microsoft.com/en-us/library/6a71f45d.aspx

.NET Framework Library
https://msdn.microsoft.com/en-us/library/gg145045(v=vs.100).aspx
Title: Re: Creating an Action
Post by: sebaslive on February 04, 2015, 12:17:41 PM
And maybe a series for more advanced level tips?
Title: Re: Creating an Action
Post by: Lane 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.
Title: Re: Creating an Action
Post by: wheretheidivides on February 04, 2015, 03:25:47 PM
or a javascript tutorial would be nice.  Wink, wink, nudge, nudge...
Title: Re: Creating an Action
Post by: Lane on February 04, 2015, 03:31:20 PM
http://unity3d.com/learn/tutorials/modules/beginner/scripting
Title: Re: Creating an Action
Post by: wheretheidivides on February 05, 2015, 01:39:13 AM
I mean I know javascript but would like to know how t use it make actions.
Title: Re: Creating an Action
Post by: Lane 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.
Title: Re: Creating an Action
Post by: jeanfabre 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
Title: Re: Creating an Action
Post by: sebaslive on February 05, 2015, 11:41:12 AM
Cool, I think thats a great way to encourage everyone to help out with the ecosystem.