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

Pages: 1 2 [3] 4 5 ... 7
Playmaker Help / FsmObject Variable
« on: February 10, 2016, 01:48:34 PM »

I am working on a small set of custom actions regarding tk2DTilemaps, I am not a coder and most I do is Copy, Paste, Combine, and ask for help :) Thank you

I have written this code and so far it is working just as expected, the only problem, since the Object required is a tk2dtilemap Object, I cannot have it as a drop down menu so I can choose from a stored Object variable. Only drag and drop works. How can I convert the tk2dtilemap object to be in the Object Variable?

I hope im clear enough, Thank you

Code: [Select]
using UnityEngine;

namespace HutongGames.PlayMaker.Actions

[ActionCategory("2D Toolkit/TileMaps")]
[Tooltip("Gets the Tile ID (Sprite ID) at a given position (Vector3) of the Tilemap")]
public class GetTileIDatPosition : FsmStateAction
[Tooltip("The Tilemap to Choose from")]

public tk2dTileMap TileObject;

[Tooltip("The Layer Number for the target Tile")]
public FsmInt LayerNumber;

[Tooltip("The Position for the target Tile")]
public FsmVector3 TilePosition;

[Tooltip("Returned Tiled ID")]
public FsmInt TileID;

public override void Reset()
TileObject = null;
LayerNumber = null;
TilePosition = null;

// Code that runs on entering the state.
public override void OnEnter()



public override void OnUpdate ()
DoGetTileID ();


void DoGetTileID()

if (TileObject == null)

LogWarning("Missing tk2Dtilemap component");


TileID.Value = TileObject.GetTileIdAtPosition (TilePosition.Value, LayerNumber.Value);




Playmaker Help / Re: Cannot convert fsmvector3 unityengine vector3
« on: February 10, 2016, 11:20:08 AM »
Thank you :) Works like a charm.

Playmaker Help / Cannot convert fsmvector3 unityengine vector3 [SOLVED]
« on: February 10, 2016, 07:13:11 AM »

I am trying to apply the following line to a custom action im working on:

TileID.Value = (tilename.GetTileIdAtPosition (Position, LayerNumber));

ofcorse im using the variables:

FSMVector3 Position
FSMInt LayerNumber

I am getting an error cannot convert FSM.Vector3 to UnityEngine.Vector3

I am not a coder, just trying to copy actions and modify them, and so far has been working but i stuck at this one. any help? Thank you

I am using tk2dTilemap Class

Playmaker Help / Re: Egg Catch
« on: December 14, 2015, 10:39:36 AM »

I haven't checked the example, but if its related in anyways. you can use Tweening?

Playmaker Help / Re: IsPointerOverUi "StoreObject"
« on: December 14, 2015, 10:36:33 AM »
Alright :) thanks for the advice, and for your help.

Playmaker Help / IsPointerOverUi "StoreObject"
« on: December 13, 2015, 01:59:30 AM »

I have a grid of UI images, something like a crosswords game, I have an FSM attached to the Image prefab, is there a way to use "IsPointerOverUi" action with the Gameobject variable ? I need to store the UI object the the pointer is over, this way I can manage all buttons from one manager instead of having many FSMs when many are created for harder levels. So basically something like a MousePick event but with UI.

Share New Actions / Re: A* pathfinding (stable 0v841)
« on: September 29, 2015, 02:46:59 AM »

That sounds like a good idea, my main issue is smooth turns, is it working in this method?

Action Requests / 2DToolkit Tilemap Actions in Playmaker
« on: September 28, 2015, 12:56:59 AM »

I was wondering if the 2DToolkit Tilemap API could be available in playmaker actions?

Thank you

Share New Actions / Re: A* pathfinding (stable 0v841)
« on: September 12, 2015, 04:03:07 AM »

Smooth Turns option on the Movto Action seems to crash unity, its a very important option in A*, I know this thread seems a bit abandoned but if any one knows how to solve this problem would be great.

I am able to use Moveto action successfully except smooth turns.


I know this Topic is old but just wanted to share my workaround for this that I found on Unity forums, just set a Random priority from 1-100 on start,  I did this and now Navmesh agents dont face each other stuck forever.

Playmaker Help / RTS Selection Box Scaling
« on: August 22, 2015, 06:37:47 AM »

Following examples here I was able to create an RTS selection box, it does the selection and everything I need except the scaling, when I click Mouse Down it starts exactly at the mouse coordinates by Using Screen to World, but when I scale the Box to do my selection, the more I move the mouse the further it gets from the corner of the Box, I know theres only one step let but I cannot figure it out.

Thank you,


I noticed that the link in the Playmaker AddOns list for "EveryPlay - IOS & Android"
actually links to "Exploder" in the asset store  ;D maybe you can fix it ?

Thank you

Playmaker Help / Conditional Random Letters
« on: April 11, 2015, 10:28:37 PM »

I have a crosswords game, everything is working perfect, except the fact that letters are randomly generated on the tiles with no condition, so sometimes you can barely make up a few words because you will have letters like "G,H,K,F.. etc" in a row so it becomes almost impossible to find words.

How can one achieve Letter generation on tiles that is somewhat smart and will have actual words? I just need the tip of the iceberg I do not know where to start.

Action Requests / Re: Chartboost
« on: March 07, 2015, 12:35:18 AM »
Video ads work fine with me, did you setup your video in the Chartboost dashboard?

Action Requests / Grid by Gamelogic
« on: March 07, 2015, 12:34:04 AM »

It would be nice to see some custom actions for this great plugin, it solves everything related to grids, and is very convenient  :) I hope this is not a dream  ;D Custom Actions would be great

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