playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - joduffy

Pages: [1] 2 3 ... 8
1
Playmaker Help / Re: Send Message Array Parameter Missing
« on: June 15, 2016, 09:21:46 PM »
Hi Dude,

I had a look over it.
I had the same problem.

I was debugging what could the problem be and I narrowed it down.

The problem is not the Switch statement:
Code: [Select]
switch (functionCall.ParameterType)
{
case "None":
break;

.....

                                case "Array":
                                        parameter = functionCall.ArrayParameter.Values;
                                        break;
}

The problem has to do with the parameter variable.

Code: [Select]
public FunctionCall functionCall;

If you have a background in coding, you can test this by create a playmaker custom action and using the above variable. You will see that the array is not listed at all.

It looks like its a playmaker bug. I would send the playmaker guys (Jean or Alex) a message or do a bug report.

A possible worked around would be to create a custom send message action but only for arrays. So you would use the FsmArray variable over the FunctionCall one. This in theory should work (but won't know till its tried).

If you need a hand writing the custom action let me know and I will try to help.

2
Playmaker Help / Re: Installing Photon Help
« on: June 15, 2016, 08:53:10 PM »
Hi Dude,

Sorry to hear about all the trouble you have been having.
I know how frustrating it can be when something isn't working.

I created a blank scene with the latest playmaker version.
I did try and use the ecosystem but couldn't get it. I was getting the parsing error that you got.

But I did manage to get it working.

Try this link:
https://github.com/jeanfabre/PlayMakerCustomActions_U4/raw/master/PlayMaker/Ecosystem/Custom%20Packages/ExitGames/PlayMakerPUN.unitypackage

Its the first package from playmaker website:
PlayMakerPUN.unitypackage
https://hutonggames.fogbugz.com/default.asp?W928

Let me know how you go. Try using it in your empty project first so that it's easy to fix if you have any errors.

3
Playmaker Help / Re: Drag Object
« on: May 23, 2016, 04:11:35 PM »
Whats happening has to do with going from screen co-ordinates that the mouse uses, to world co-ordinates that gameobjects use.

If you install the ecosystem browser, you can do a search for follow mouse action. That should hopefully solve your problem :)

https://hutonggames.fogbugz.com/?W1181

4
Playmaker Help / Re: Making text disappear when clicked?
« on: May 23, 2016, 01:45:37 AM »
Hi Dude,

The action you need is the

Quote
U GUI Canvas Group Set Alpha

You then create an Fsm that loops and reduces the float for the alpha amount over time to cause it to fade. If it confusing let me know and I will look into creating an Fsm for you.

If you want to turn the text off without a fade. You can use:

Quote
Activate Game Object

5
Playmaker Help / Re: Playmaker With Other Scripts
« on: May 22, 2016, 10:50:21 PM »
Anytime dude  :)
Glad I could help.

Let me know how you go with it.

6
Playmaker Help / Re: Playmaker With Other Scripts
« on: May 22, 2016, 09:45:25 PM »
Hey dude,

I made you a video. You can find it here:

http://jonathanoduffy.com/playmaker-forum-q-a-playmaker-with-other-scripts/

Hopefully it helps you out. You can also look at how Playmakers GUI proxy is setup. It shows how to go from a system into a playmaker friendly one. Might be helpful for your VR stuff.

7
Sweet.
Glad it worked and that I could help you out.

Good luck with the rest of the project dude.

8
Cool.

So what is happening is that the script is using String over FsmString. So what you need to do is just replace it.

So String Text becomes FsmString Text.
Then anywhere you see Text, it now becomes Text.Value

I tried to update the script so that is uses FSM's variables. I can't test it but in theory it should work. The only thing that might cause an error, is if the the of the code tries to use the variables directly and is expecting them in non-Fsm form.

But try it and let me know how it goes.

Code: [Select]
using UnityEngine;
using System.Collections;
using Crosstales.RTVoice;

namespace HutongGames.PlayMaker.Actions {
   [ActionCategory("Crosstales.RTVoice")]
   public class Speak : SpeakBase {

      public bool reset;

      [Tooltip("Text to speak.")]
      public FsmString Text;

      [Tooltip("Culture for of the voice (default: empty).")]
      public FsmString Culture = "en";

      [Tooltip("Index of the voice from the Speaker.VoicesForCulture()-call.")]
      public FsmInt Voice;

      public override void OnEnter() {
//         if (GameObject.Find("RTVoice") == null) {
//            AddRTVoice();
//         }

         switch (Mode) {
            case SpeakMode.Speak:
               Speaker.Speak(Text.Value, AudioSource, Speaker.VoiceForCulture(Culture.Value, Voice.Value), true, Rate, Volume);
               break;
            case SpeakMode.SpeakNative:
               Speaker.SpeakNative(Text.Value, Speaker.VoiceForCulture(Culture.Value, Voice.Value), Rate, Volume);
               break;
         }
         Finish();
      }
   }
}
// Copyright 2016 www.crosstales.com

9
Playmaker Help / Re: Playmaker With Other Scripts
« on: May 22, 2016, 05:26:09 PM »
Depends on how your code is setup. But I create actions for all my code.
I just find it helps streamline everything.

But if you wanted to transition a playmaker state from code, you would need to send the FSM and event.

So you would create some custom events on your states. Then from your code, you would send those events to the FSM, which would trigger the states to move from one to the other.

This video should show you how to do what your after:
https://www.youtube.com/watch?v=g-C-6O10CNo&list=PLC759306A1E692A10&index=13

10
Playmaker Help / Re: Playmaker With Other Scripts
« on: May 22, 2016, 05:09:58 PM »
Hey dude,

With your VR controller, you could create custom playmaker actions which send an event when the object is grabbed or being used.

The send event option is what you are after.

Do you have a copy of the code you are trying to turn into an action?

11
Hi Dude,

Can you right click on the action and go edit script. Then post whats inside it.
I think it should be easy enough to edit so that you can use string fsm variables. Just need to see how its setup.

12
Playmaker Help / Re: TextMesh Pro not working with iTween
« on: May 15, 2016, 02:48:44 PM »
Anytime dude.

Glad I could help  :)

13
Playmaker Help / Re: TextMesh Pro not working with iTween
« on: May 15, 2016, 04:49:53 AM »
djaydino is right about picking another tweening package. Especially for ios games as itween has a system that uses hashtables that causes lag. I have only used leantween and not the others ones. But, getting back on track.

You can get playmaker action browser here, which is called ecosystem:

https://hutonggames.fogbugz.com/?W1181

Its pretty cool as you can search for actions to expand playmaker functionality. You can also directly get the ugui stuff here:

https://hutonggames.fogbugz.com/?W1192

I would recommend using the ecosystem though to get the ugui actions as having the ecosystem setup opens up options for you - in terms of actions you can access and download.

UGUI is unity built in system so all you need is the package.

14
Playmaker Help / Re: TextMesh Pro not working with iTween
« on: May 14, 2016, 09:31:59 PM »
This is where you can find the events for uGUI for playmaker.

15
Playmaker Help / Re: TextMesh Pro not working with iTween
« on: May 14, 2016, 09:24:41 PM »
Anytime Dude. Here to help.

Are you using the uGUI proxy stuff for playmaker? So there is an addon you need to get?

The events should be uGUI/OnClick

I don't think you can use the mouse down events. You have to use the uGUI custom events for it to work.

I highlighted the stuff in red you need.

Pages: [1] 2 3 ... 8