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 - Six66

Pages: [1] 2 3 ... 5
1
PlayMaker Help / Photon Stats GUI Understanding?
« on: April 22, 2020, 11:21:01 AM »
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.

2
Share New Actions / Arcing Projectiles To Target Position
« on: April 03, 2020, 04: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);
        }
    }
}




3
PlayMaker Help / How to update Array vector element variable
« on: August 10, 2019, 09:40:17 AM »
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


4
Action Requests / Photon RaiseEvent action
« on: July 24, 2019, 07: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.

5
PlayMaker Help / Pun Photon demo room list with ugui?
« on: July 18, 2019, 07: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


6
Action Requests / KIN SDK Action request would buy
« on: April 04, 2019, 05: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

7
PlayMaker Help / No overload matches delegate
« on: April 15, 2018, 02: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;
}

8
PlayMaker Help / ScriptableObject Show in UI
« on: April 14, 2018, 10:46:47 PM »
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.


9
General Discussion / How to spawn prefab in a circle?
« on: May 29, 2017, 04: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.

10
PlayMaker Help / Weird lagging at the start
« on: December 19, 2016, 10:27:15 AM »
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.

11
PlayMaker Help / Finding angle on a slope 2d
« on: October 12, 2016, 07: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.


12
PlayMaker Help / Getting negative rotation and clamping?
« on: August 16, 2016, 10:09:37 PM »
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

13
PlayMaker Help / Ricochet with playmaker?
« on: June 27, 2016, 12:25:22 AM »
Hi!

Can someone show me how to get richochet working with playmaker?
I have watch this video so many times and trying to put it together with playmaker actions but was not successful.

I don't understand vector reflect it's asking for two vector3, Get Atan asking for a float instead of vector 3?
I'm so confuse
Please have a look at this video and let me know if it's possible with playmaker. Thanks

https://www.youtube.com/watch?v=u_p5H0wEN8Y


14
User Showcase / Switch Balls
« on: June 23, 2016, 05:46:22 PM »
It's a simple game, but took me forever to make.

Not the best game but. I'm still learning. Please download and rate! Thanks guys.

android download:
https://play.google.com/store/apps/details?id=com.gunspoonstudio.switchballs

15
PlayMaker Help / Addforce to mouse positon?
« on: February 23, 2016, 08:50:09 AM »
Hi,

How do you shoot a bullet toward your mouse  position?
I'm having trouble understanding how I would add an offset for the bullet to go toward the mouse position.

I have look at the canon game that Jean made, but it's not what I'm looking for.
Any help would be great!

Thanks

Pages: [1] 2 3 ... 5