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.


Topics - RC

Pages: [1] 2 3 ... 5
1
PlayMaker Tutorials / How to Jump in unity feedback
« on: July 12, 2021, 11:24:21 AM »
Could you guys give me some feedback on my video? Isit too fast to get the point across? Any feedback would be much appreciated. Thanks.



2
PlayMaker Help / Can't get Raycast 2d to work
« on: August 30, 2020, 07:57:36 PM »
I haven't used raycast 2d in a while, I remember that I had to add in a playmaker 2d prefab to get it working, I can no longer find it. Can someone point me to the location of it? thanks

I'm using the latest unity and playmaker.


3
PlayMaker Bug Reporting / Ecosystem beta Error.
« on: August 29, 2020, 11:28:33 AM »
I tried enabling beta in the ecosystem panel and now I'm getting an error, I can't seem to disable it. So I deleted the ecosystem folder restart unity.
Now I install the ecosystem package once again, I get that same error.
But under playmaker, the ecosystem does not show up anymore.
Where or how do I revert it back without deleting playmaker itself? Thank you.




Assets\net.fabrejean\Editor\PlayMaker\Ecosystem\Ecosystem Browser.cs(2441,16): error CS0029: Cannot implicitly convert type 'UnityEngine.WWW' to 'Hutong Games.PlayMaker.Ecosystem.Utils.WWW'

4
PlayMaker Help / Photon Stats GUI Understanding?
« on: April 22, 2020, 02:21:01 PM »
Hello, I'm trying to understand this photon stats gui.
I've looked at the link below, but I'm still confuse.
 https://doc.photonengine.com/en-us/pun/v2/troubleshooting/photon-stats-gui

Are the Out and In numbers representing the messages counts?

Are those number for every message count from everyone in the room or isit just for 1 client and you have to multiply it by the number of client to get the total message going in and out?

thank you.

5
Share New Actions / Arcing Projectiles To Target Position
« on: April 03, 2020, 07:20:54 PM »
Hello, I just finish converting this scrip to Playmaker action and would like to share it with everyone. the script is from http://luminaryapps.com/blog/arcing-projectiles-in-unity/ and they are much appreciated!

Code: [Select]
using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{

    [ActionCategory("Custom")]
    public class Projectile_to_target : FsmStateAction
    {

        [Tooltip("Position we want to hit")]
        public FsmVector3 targetPos;

        [Tooltip("Horizontal speed, in units/sec")]
        public FsmFloat speed = 10;

        [Tooltip("How high the arc should be, in units")]
        public FsmFloat arcHeight = 1;

        public FsmVector3 nextPos;


        public FsmVector3 startPos;

        FsmFloat archfloat = -0.25f;

        [Tooltip("Repeat every frame.")]
        public bool everyFrame = true;

        // Code that runs on entering the state.
        public override void OnEnter()
        {
            // Cache our start position, which is really the only thing we need
            // (in addition to our current position, and the target).
            startPos.Value = Fsm.GameObject.transform.position;
        }


        public override void OnUpdate()
        {
            // Compute the next position, with arc added in
            FsmFloat x0 = startPos.Value.x;
            FsmFloat x1 = targetPos.Value.x;
            FsmFloat dist = x1.Value - x0.Value;
            FsmFloat nextX = Mathf.MoveTowards(Fsm.GameObject.transform.position.x, x1.Value, speed.Value * Time.deltaTime);
            FsmFloat baseY = Mathf.Lerp(startPos.Value.y, targetPos.Value.y, (nextX.Value - x0.Value) / dist.Value);
            FsmFloat arc = arcHeight.Value * (nextX.Value - x0.Value) * (nextX.Value - x1.Value) / (archfloat.Value * dist.Value * dist.Value);
            nextPos = new Vector3(nextX.Value, baseY.Value + arc.Value, Fsm.GameObject.transform.position.z);

            // Rotate to face the next position, and then move there
            Fsm.GameObject.transform.rotation = LookAt2D(nextPos.Value - Fsm.GameObject.transform.position);
            Fsm.GameObject.transform.position = nextPos.Value;
        }

        void Arrived()
        {

        }

        ///
        /// This is a 2D version of Quaternion.LookAt; it returns a quaternion
        /// that makes the local +X axis point in the given forward direction.
        ///
        /// forward direction
        /// Quaternion that rotates +X to align with forward
        static Quaternion LookAt2D(Vector2 forward)
        {
            return Quaternion.Euler(0, 0, Mathf.Atan2(forward.y, forward.x) * Mathf.Rad2Deg);
        }
    }
}




6
PlayMaker Help / How to update Array vector element variable
« on: August 10, 2019, 12:40:17 PM »
Hi, I'm trying to figure out how to update this array vector 2 element field variables "red circle on the left" , is there a way to insert the vector 2 in each element in real time with playmaker?



thanks


7
Action Requests / Photon RaiseEvent action
« on: July 24, 2019, 10:56:30 AM »
Hi, I'm looking for Photon RaiseEvent, i feel like its there, but not im bot sure which one isit.

I'd like to use raiseevent instead of rpc.

Can someone point me to it? Thank you.

8
PlayMaker Help / Pun Photon demo room list with ugui?
« on: July 18, 2019, 10:55:49 AM »
Hi, is there a demo that show room list with ugui? I see sample with the old gui, and I'm having a hard time trying to get it to work with the new ugui.

I'm using pun not pun2

Thanks


9
Action Requests / KIN SDK Action request would buy
« on: April 04, 2019, 08:30:28 PM »
Hello, I was wondering if anyone could make some playmaker actions for kin sdk?
Please give me a price and time frame. Thank you.

https://assetstore.unity.com/packages/tools/utilities/kin-sdk-for-unity-android-beta-137182

10
PlayMaker Help / No overload matches delegate
« on: April 15, 2018, 05:29:55 PM »
Hi, can someone help me fix this error.
No overload for 'OnFailToLoad' matches delegate 'action<int>'

thanks

Code: [Select]

public FsmEvent OnLoadedEvent;
public FsmEvent OnFailedToLoadEvent;

public FsmEvent OnOpenEvent;
public FsmEvent OnCloseEvent;
public FsmEvent OnLeftApplicationEvent;


public override void OnEnter() {

AndroidAdMobController.Instance.OnInterstitialLoaded += OnLoaded;
AndroidAdMobController.Instance.OnInterstitialFailedLoading += OnFailedToLoad;

AndroidAdMobController.Instance.OnInterstitialOpened += OnOpen;
AndroidAdMobController.Instance.OnInterstitialClosed += OnClose;
AndroidAdMobController.Instance.OnInterstitialLeftApplication += OnLeftApplication;

}


private void OnLoaded() {
Fsm.Event(OnLoadedEvent);
}

private void OnFailedToLoad() {
Fsm.Event(OnFailedToLoadEvent);
}


private void OnOpen() {
Fsm.Event(OnOpenEvent);
}

private void OnClose() {
Fsm.Event(OnCloseEvent);
}

private void OnLeftApplication() {
Fsm.Event(OnLeftApplicationEvent);
}


void OnDestroy() {
AndroidAdMobController.Instance.OnInterstitialLoaded -= OnLoaded;
AndroidAdMobController.Instance.OnInterstitialFailedLoading -= OnFailedToLoad;

AndroidAdMobController.Instance.OnInterstitialOpened -= OnOpen;
AndroidAdMobController.Instance.OnInterstitialClosed -= OnClose;
AndroidAdMobController.Instance.OnInterstitialLeftApplication -= OnLeftApplication;
}

11
PlayMaker Help / ScriptableObject Show in UI
« on: April 15, 2018, 01:46:47 AM »
Hi, I just recently bought P-VUE (PlayFab Visual Unity Extensions) but I have been waiting for the dev to respond back my question, and it doesn't look like I'm getting any answer soon here.

I'm wanting to show a leaderboard and it looks like it's getting the list just fine, but my question is how do I show it in the UI.
It's array type is Object. I don't know what that is. can someone help me out. thank you.


12
General Discussion / How to spawn prefab in a circle?
« on: May 29, 2017, 07:47:40 PM »
Hello.

Im trying to figure out how to spawn prefab in a circle. Has anyone successfully done it,that can share how you did it? Thank you.

13
PlayMaker Help / Weird lagging at the start
« on: December 19, 2016, 12:27:15 PM »
Hi, can someone please explain my issue that I'm having with my android build.
The problem is the lag, everything runs smooth after I restart my first level or advance to the next level of my platformer game.

I have use the profiler to track down the problem, but I can't really find it. Everything looks normal.
I do load an empty scene between levels.

My main question is why would it lag when the level begins and not after a restart of the level or advancing to a new level.

Any advice would be great. Thank you.

14
PlayMaker Help / Finding angle on a slope 2d
« on: October 12, 2016, 10:27:26 PM »
Hi,

Can someone help me out on how I can find the angle on a slope?
This is how I did it, but the return angle is wrong.

Raycast 2d get normal
get atan from vector 2 "grab it from raycast normal"

thanks.


15
PlayMaker Help / Getting negative rotation and clamping?
« on: August 17, 2016, 01:09:37 AM »
Hi, can someone help me get the rotation of an gameobject to return as a negative?

I'm trying to rotate the camera up and down on the x axis but it keep returning a higher number such as 359 once i go below 0.
Is there a way to get a negative number like how it shows it in the unity inspector under transform?

I want to clamp the camera at min of -45 and max at 45.

Thanks

Pages: [1] 2 3 ... 5