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

Pages: 1 2 [3] 4 5 ... 8
31
Action Requests / Array List not complete
« on: January 12, 2015, 12:25:49 AM »
i see no possibility to add Object list to Array List

and i need something to List series of Sprites

32
Share New Actions / Get Quaternion XYZW
« on: January 11, 2015, 02:38:32 PM »
Hi, i recently was in need of this action so i created it:

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory("Quaternion")]
[Tooltip("Get the XYZW channels of a Quaternion Variable and storew them in Float Variables.")]
public class GetQuaternionXYZW : FsmStateAction
{
[RequiredField]
[UIHint(UIHint.Variable)]
public FsmQuaternion QuaternionVariable;
[UIHint(UIHint.Variable)]
public FsmFloat storeW;
[UIHint(UIHint.Variable)]
public FsmFloat storeX;
[UIHint(UIHint.Variable)]
public FsmFloat storeY;
[UIHint(UIHint.Variable)]
public FsmFloat storeZ;
public bool everyFrame;

public override void Reset()
{
QuaternionVariable = new FsmQuaternion {UseVariable = true} ;
storeW = null;
storeX = null;
storeY = null;
storeZ = null;
everyFrame = false;
}

public override void OnEnter()
{
DoGetQuaternionXYZW();

if(!everyFrame)
Finish();
}

public override void OnUpdate ()
{
DoGetQuaternionXYZW();
}

void DoGetQuaternionXYZW()
{
if (QuaternionVariable == null) return;

if (storeW != null)
storeW.Value = QuaternionVariable.Value.w;

if (storeX != null)
storeX.Value = QuaternionVariable.Value.x;

if (storeY != null)
storeY.Value = QuaternionVariable.Value.y;

if (storeZ != null)
storeZ.Value = QuaternionVariable.Value.z;
}
}
}

33
Action Requests / GetQuaternion WXYZ Value[SOLVED]
« on: January 11, 2015, 07:28:04 AM »
i would like to have this kind of action like we may have for vector3XYZ

values as float and Int

and also if we can have more actions related to vector4

thanks

34
Playmaker Help / Scripts conversion to playmaker states actions
« on: January 09, 2015, 04:46:03 AM »
Hi,

i'm actually trying to convert scripts used for a project and wrote in C# to playmaker fsm states

first of all i successfully did a simple part, but i discovered some unknown variables and i'm wondering the way to do.

 
Code: [Select]
  [SerializeField]
private MessageScript _Messanger;
private Transform   _Camera;
private RaycastHit  _Hit;
private EndScreen   _ScoreBoard;
private PauseScreen _PauseScreen;
private Vector4 _Points;
private AudioClip[] _Audio
private RotateStripes _Stripes;
private TextMesh    _TimeText;


What means SerializeField and how to REcreate those kinds of variable ?

what should i understand with this kind of declaration ?

 
Code: [Select]
private GameObject  _SuggestionCard,
                        _SuggestionBoard;

What is the relation between
Private / public and the variables/Global variable used in playmaker ?

i'll certainly get more question later...

35
Action Requests / Animate Variable Loop
« on: December 18, 2014, 10:56:57 AM »
I would like to have a simple float animation loop to animate texture offset effect.
the actual variable animation is only allowing to be played 1 time before exit to a new state..

36
Action Requests / Template
« on: December 14, 2014, 07:34:59 AM »
Hi

i don't know really where to put this ... sry if it's not appropriate.

i would like the ability to save template outside of asset folder if possible
simply because i would like to organise my structure between all my different playmaker projects easily by locating all templates made throught all games in 1 place.

37
Playmaker Help / How to convert int or float to get percent ?
« on: October 27, 2014, 01:50:20 AM »
Hi,

i would like to create a GUI color variable wich will be modified depending of the Ercentage of a defined value.

to be more precise, on a Shield Icon, set to green when 100% of life to red when 0% of life

38
Playmaker Help / Overhead from profiler due to error [SOLVED]
« on: October 23, 2014, 02:26:46 PM »
Hi guys,

i get this error when i play my game:

Code: [Select]
NullReferenceException
System.Reflection.MonoProperty.GetterAdapterFrame[GameObject,Renderer] (System.Reflection.Getter`2 getter, System.Object obj) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoProperty.cs:234)
System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoProperty.cs:295)
HutongGames.PlayMaker.ReflectionUtils.GetMemberValue (System.Reflection.MemberInfo member, System.Object target)
HutongGames.PlayMaker.ReflectionUtils.SetMemberValue (System.Reflection.MemberInfo[] memberInfo, System.Object target, System.Object value)
HutongGames.PlayMaker.FsmProperty.SetValue ()
HutongGames.PlayMaker.Actions.SetProperty.OnUpdate () (at Assets/PlayMaker/Actions/SetProperty.cs:34)
HutongGames.PlayMaker.FsmState.OnUpdate ()
HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.Update ()
PlayMakerFSM.Update ()

there is no playmaker error in the editor, so i don't know how to solve this.
any idea??

39
Playmaker Help / Texture2D Problem
« on: September 12, 2014, 12:48:14 AM »
i am trying to edit the Amplify Color script to make it able to work with Playmaker, but if i replace Texture2D by Texture, i get this error message

Assets/AmplifyColor/Plugins/AmplifyColorBase.cs(143,57): error CS1061: Type `UnityEngine.Texture' does not contain a definition for `mipmapCount' and no extension method `mipmapCount' of type `UnityEngine.Texture' could be found (are you missing a using directive or an assembly reference?)

so i'm a bit locked with this problem..

40
Is it simply possible to make a character/object following another character controlled by player , using this 2 components ?

i tryed to do it with Move Towards a point attached to player and a collider+ rigidbody and it works nice but i cannot use character Motor without character controller and i would like to use it to have the same jump than the player.

The best i can get using it is to have the follower following during a certain time but passing through the ground after a time.

41
Playmaker Help / Take Screenshot doesn't work on web build [SOLVED]
« on: September 01, 2014, 03:26:46 PM »
all is in the title,

i made an input on return to take screenshots, wich works great in the editor but looks useless with a web build.

is there a way to change this ?

42
Playmaker Help / Character Controller Collision Detection Problem
« on: August 30, 2014, 09:38:05 AM »
I have set an enemy for my game (A tentacle) wich attack the player if he is to near of it (using a trigger enter).
My Tentacle is animated and move like i want it but, i have attached 2 Colliders to the desired bones, and i'm using Collision Event With On Controller Collider Hit to detect it, and wht is strange is that it works nice only when the character is moving...
so you can be immortal if you stay fixed...well, good trick but not desired.


43
I tryed to influence the included RigidBody Velocity of this character controller, but without any kind of resultat.

any help ?

44
Playmaker Help / Make Chronometer
« on: August 30, 2014, 09:08:07 AM »
Hi,

i fund some interesting tool inside Time Action, but would i would like to do is a timer to set Mininutes and seconds, and why not hours...

The best way i have for now is using Get Time Info from "Time In Current State"
but converting it from float to string doesn't reveal exactly what i espect
( 20.234578467) --> H:MM:SS

Is anyone know something to make a nice chronometer ?

45
Playmaker Help / character motor jump Bounce[SOLVED]
« on: August 25, 2014, 04:51:31 AM »
I'm setting a character using character controller + character Motor,

and each time i make him jumping, when he lands back, there is bouncing effect like a ball, wich really doesn't fit with any kind of human jump...

how can i remove it ?

Pages: 1 2 [3] 4 5 ... 8