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 - Neural Echo

Pages: [1]
1
Bump.

Any word on how the 1.2 beta is coming along, and when it will be released?


2
Yep, this is also happening in v1.1, on Mac.

3
PlayMaker Help / Re: How to hide state name?
« on: April 07, 2011, 04:27:15 AM »
Uncheck the "Display State Labels in Game View" option in the Debug drop-down menu at the bottom of the FSM graph editing window.

4
PlayMaker Help / Re: Find Closest action
« on: April 06, 2011, 06:57:23 PM »
I have modified the built-in Find Closest action to include an option to ignore the Game Object that owns the FSM that contains the action.

The code for the modified action can be found in th formum post http://hutonggames.com/playmakerforum/index.php?topic=71.0

5
Share New Actions / Find Closest - Now with an Ignore Owner option
« on: April 06, 2011, 05:21:23 PM »
Here's a slightly modified version of the built-in Find Closest action that optionally allows the user to ignore the object that owns the FSM that contains this action.

To update the built-in action with this version, replace the code inside the Assets/PlayMaker/Actions/FindClosest.cs script with the code below.


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

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.GameObject)]
[Tooltip("Finds the closest object to the specified Game Object.\nOptionally filter by Tag and Visibility.")]
public class FindClosest : FsmStateAction
{
[RequiredField]
public FsmOwnerDefault gameObject;
[RequiredField]
[UIHint(UIHint.Tag)]
public FsmString withTag;
[Tooltip("If checked, ignores the object that owns this FSM.")]
public bool ignoreOwner;
public FsmBool mustBeVisible;
[UIHint(UIHint.Variable)]
public FsmGameObject storeObject;
[UIHint(UIHint.Variable)]
public FsmFloat storeDistance;
public bool everyFrame;


public override void Reset()
{
gameObject = null;
withTag = "Untagged";
mustBeVisible = false;
storeObject = null;
}

public override void OnEnter()
{
DoFindClosest();

if (!everyFrame)
Finish();
}

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

void DoFindClosest()
{
GameObject go = gameObject.OwnerOption == OwnerDefaultOption.UseOwner ? Owner : gameObject.GameObject.Value;

GameObject[] objects = GameObject.FindGameObjectsWithTag(withTag.Value);
GameObject closestObj = null;
var closestDist = Mathf.Infinity;

foreach (var obj in objects)
{
if (ignoreOwner && obj == Owner)
continue;

if (mustBeVisible.Value && !ActionHelpers.IsVisible(obj))
continue;

var dist = (go.transform.position - obj.transform.position).sqrMagnitude;
if (dist < closestDist)
{
closestDist = dist;
closestObj = obj;
}
}

storeObject.Value = closestObj;
storeDistance.Value = closestDist;
}
}
}

6
PlayMaker Help / Re: Find Closest action
« on: April 04, 2011, 07:32:10 AM »
Are all of the ships (including the player's ship) tagged as a 'Spaceship'?

If so, the player's ship will always be the closest GameObject to itself with the tag 'Spaceship'. You should try tagging the player's ship as 'player', and all the other ships as 'Spaceship'.

7
Forum Suggestions / Re: Better Code Font.
« on: April 01, 2011, 10:24:19 PM »
Agreed... same goes with the emoticons... many of them are almost indistinguishable.

8
Forum Suggestions / Forum link on home page
« on: April 01, 2011, 05:56:41 AM »
It would be good if you had a link to the playMaker forum on the playMaker/HutongGames home page (or all pages). I have to Google the URL almost every time I want to visit.  :-[

9
Forum Suggestions / Faster Forum Server(s)/Connection
« on: March 28, 2011, 07:50:07 AM »
Having a dedicated playMaker forum is great. However, the user experience is diminished because pages take so long to load. Is there any chance you can beef up the hardware or connection speed of the server that is hosting it? Thanks.

10
Feature Requests / Re: Action filter field
« on: March 27, 2011, 11:15:18 PM »
Like Tobbeo, I'm very happy to hear this feature is being implement. Thanks Alex.

PS: Any clues as to when version 1.1 will be out?

11
Feature Requests / Action filter field [implemented]
« on: March 25, 2011, 09:58:24 AM »
As the list of available actions is continuing to grow, could you please add a text field at the top of the 'Actions' panel that allows you to filter the actions being displayed.

For example, if you type 'anim' into the field, all actions with the string 'anim' in their title (and possibly in/under their internal variables and/or descriptions) would be displayed, potentially under their respective category headings (with unmatched category headings and actions filtered out).

When the user deletes the text in the filter field the Actions panel should return to displaying entire list of headings for all Action categories. An 'x' delete button should also be included to the right of the filter text field to allow it to be cleared by clicking on the 'x'.

12
Feature Requests / Re: Playmaker Trial?
« on: March 24, 2011, 05:52:05 AM »
I would love to try out Playmaker for myself before buying. Are there any plans for a trial version?

Watch the Screen Casts on the playMaker site and check out the extensive list of built in actions it has, and you will get an idea of how powerful it is.

IMHO, playMaker is an awesome extension to Unity that makes creating game logic and controlling objects so much easier and quicker than it would be by writing my own code.

I was working on my own Finite State Machine system but it was nowhere near as complete, polished, well implemented and integrated into Unity as this is, even at this early stage of it's development (i.e., having only been released recently).

Check the other reviews of playMaker in the Unity Asset Store and you'll see that it's very highly regarded.

I'm glad I bought it, it's worth every cent!


Pages: [1]