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

Pages: [1] 2
1
Playmaker Help / using OnDestroy() from PlayMaker
« on: April 14, 2018, 12:36:54 AM »
Is there a way to run some actions/events when the object going to be destroyed?
Similar to the OnDestroy() that can be used from the C#?


I write a Script that send event to fsm
void OnDestroy() { fsm.SendEvent("Die"); }
but unfortunately it does not work. I can send event onUpdate, for example, but can't see a result OnDestroy  :(

2
Playmaker Help / Saving texture with transparency
« on: April 12, 2018, 01:51:28 AM »
Hey, guys!
I wonder, is it possible to render and save a texture with transparency at runtime?

I mean take a picture from camera and save it as image but keeping the camera background transparent?
I thought RenderTexture and this action converting RenderTexture to Texture2D could help me, but it have some weird behavior: When I try to save a picture it does not make a snapshot at current time, but record all the previous object movement. So, I can have an object on transparent background but with all the trails behind...

Is it a RenderTexture limitation? Is it even possible to save a picture with transparency?     

3
Action Requests / WordPress login asset
« on: March 21, 2018, 01:30:30 PM »
Hey! I'm going to buy a WordPress login asset from mybad studios and i'm willing to ask is anyone interested to make a basic set of playmaker actions for it? How much it could cost me?

If it's really possible I would also buy other MyBad assets, like WordPress User Data, WordPress Money, e.t.c. and commission playmaker actions for them either.

4
I know that Unity have some weird restriction for Prefab referencing to Scene Objects... But, I have a global variable that referencing to scene objects and I use it in prefabs and everything works fine. I save and load project, open different scenes, build it and it works perfectly. Except when Playmaker realize that I'm referencing to scene objects with this variables it flooded me with tons of red alerts and all this alarm mood.

What am I doing wrong? I mean, if the referencing to scene objects from prefab really works this way, why can't I do it?

And is it possible to ask Playmaker stop the panic?
I found the option "Check for prefab restriction" and looks like the panic level goes down. But I'm still interested why is it wrong and should I care? Did it already sent a complain to Unity's headquarter: someone use me in a prohibited way?

5
Playmaker Help / Don't make variable public [SOLVED]
« on: February 10, 2018, 06:21:25 PM »
Hi!
I made very simple action to swap game objects. I used a temp variable and I don't want to make it visible in the PlayMaker. How can I do that? (I thought I can make it privat instead of public but in this case the action doesn't work at all.)

Code: [Select]
public class SwapGameObject : FsmStateAction
{

public FsmGameObject gameObject1;
public FsmGameObject gameObject2;
        public FsmGameObject gameObjectTemp;
       

        public override void Reset()
{
            gameObject1 = null;
gameObject2 = null;
            gameObjectTemp = null;

        }

public override void OnEnter()
{
            gameObjectTemp.Value = gameObject1.Value;
            gameObject1.Value = gameObject2.Value;
            gameObject2.Value = gameObjectTemp.Value;

        }

       
    }

6
Playmaker Help / MegaFiers playmaker actions goes wrong [SOLVED]
« on: December 20, 2017, 08:57:34 PM »
I hate to be the person who necromancing the old stuff, but did anyone use this  MegaFiers actions from 2014?
https://github.com/jeanfabre/PlayMaker-Mega-Fiers/tree/master/Assets/PlayMaker%20Custom%20Actions/Mega-Fiers

It has two actions for morphing, Megafiers Set Morph Percent By Name and Megafiers Set Morph Percent By Index. The Index one works as expected but the Name - disregard the name and just use first available shape from the MegaMorph script. Am I the only one having this issue?
 

7
Playmaker Help / Reconnect to prefab
« on: October 07, 2017, 10:23:22 PM »
Hey! Looks like I don't understand some very basic concept...

1. I have prefab with FSM
2. I drag-n-drop this prefab to the scene
3. The FSM is not working, instead i have "prefab disconnected" message
4. I'm switching manually "reconnect to prefab" and it starts to work.   

Why is it happening? Shouldn't it working without manual reconnecting? :o


8
General Discussion / Unity Machine Learning
« on: September 19, 2017, 05:12:50 PM »
Did you guys see fresh unity announce about machine learning? It's awesome! So much possibilities. I hope the playmaker will support it too  ;)

https://blogs.unity3d.com/2017/09/19/introducing-unity-machine-learning-agents/

9
Playmaker Help / Normalize sliders.
« on: September 17, 2017, 09:49:45 AM »
Hey, guys! It should be a default knowledge for a real programmers, but i'm not, so i'm here,  asking for help  ::)

How can I normalize bunch of sliders in realtime? So the sum value of all sliders not exceed the 1. For example I have 3 sliders with [0..1] range with zero position.
1. Moving first to 1 -> all other stay at zero
2. Pushing second to .5 -> first one automatically sliding to .5 too
3. Pushing third to .5 -> first and second sliding to .25   
 

10
Playmaker Help / get local Rotation
« on: August 19, 2017, 10:42:48 AM »
Looks like a simple question, but I stuck. How can I get the local rotation of the object like it is shown in the inspector? For example it rotates from -10 to 10, how can I just get this numbers, instead of all this eulerquaternionstuff

11
Playmaker Help / PUN: can't rejoin room
« on: August 14, 2017, 01:57:03 PM »

Here is my very simple setup:

1) network connect
2) create room with player ttl 60000 and no cleanup cache
3) leave room
4) rejoin the room

It seems to work, when the second player connected to the same room, but if I'm the only player who create and than leave the room - it's deleted immediately on leaving. Why it's happen? Shouldn't the room stay alive for 1 minute?

12
Playmaker Help / PUN turnbased: impossible with playmaker?
« on: August 14, 2017, 01:33:58 PM »
I'm trying to understand the turnbased PUN mechanics and for now I thought it's impossible with playmaker, am I right?

Here is the basic concpet from the photon doc: https://doc.photonengine.com/en-us/pun/current/manuals-and-demos/rockpaperscissors-demo#do_s_and_don_ts

It says Don't use PhotonView components but the PhotonView is the base tool for integration Photon and playmaker, right?

13
Playmaker Help / Choosing strategy: need help
« on: August 09, 2017, 09:30:24 AM »
Hey! Technically, it's not a playmaker only question, but I hope it's  good place to take some advises.

I'm willing to make a kind of network rock-paper-scissors game. Main logic should be like this:
1) player can create/login account on the server
2) choose another player from the online list and send him (send to server )his "strike"
3) second player got message, he got striked and send own "move" back
4) server match it and send both of them results: who is winner/loser

Do I need some unet/photon solutions, or it's better to have a php/mysql web database and clients connect directly to it?

Maybe the server should be on php too, but I'm not good with code, so I'm willing to keep all the logic in the unity (it will be more complex, than just match rocks with paper). Is it a good decision to make a "server" that will connect to the same database and looking if he need some job to do? Or maybe I'm missing some simple, obvious solutions?

14
Playmaker Help / Mirroring animation [SOLVED]
« on: March 24, 2017, 11:50:06 AM »
Hey guys! Is there a way for mirroring the mecanim animation on the go? The only way I found for now is having a 2 separate animator with and without mirroring  :-\


15
Playmaker Help / Get Vector Length[SOLVED]
« on: March 02, 2017, 04:12:48 PM »
Is it some reason why the action Get Vector Length don't have a checkbox Every Frame?

I've added a standard checkbox + OnUpdate() function to the GetVectorLength.cs and it works fine  :)

But I'm afraid I could forget about it and it will be rewritten with the default function after the Playmaker update. Maybe it's possible to make this small edit a default?

Pages: [1] 2