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

Pages: 1 2 [3] 4 5 ... 16
31
PlayMaker Help / Re: ios build problem
« on: April 28, 2017, 05:01:29 AM »
How do you store your variables? I'm asking because if you are drag and dropping game objects, instead of saving them as variables it will lose reference when built. Someone correct me if I'm wrong but at least that's what I experienced.

32
PlayMaker Help / Re: I Tween Rotate To action once worked and once not
« on: April 19, 2017, 07:55:03 AM »
Download DotTween from asset store, it's free and then actions are on Ecosystem I think.

33
PlayMaker Help / Re: Array Maker Problem
« on: April 19, 2017, 07:17:30 AM »
Last item, array list last index - Yes.

First item, is index 0, so can't you just use array list get, at index 0?

34
PlayMaker Help / Re: certificate error on iOS
« on: April 19, 2017, 07:14:54 AM »
Would it have anything to do with using XmlTextReader?

Am I doing this wrong?

Code: [Select]
private void ReadLine(string url)
{
try {
XmlTextReader reader = new XmlTextReader (url);
if(reader.Value.Length > 0) {
while (reader.ReadToFollowing("root")) {
switch (reader.NodeType) {
case XmlNodeType.Element:
NewVersion.Value = reader.GetAttribute ("version");
break;
}
}
} else {
Debug.LogWarning("Reader is empty... Possibly no internet connection");
}
}
catch(XmlException ex) {
Fsm.Event (Failed);
Debug.LogError ("Error ocurred while fetching new XML data, ex: " + ex);
}

}

private void CompareVersion()
{
try {

var oldxmlData = FsmVariables.GlobalVariables.FindFsmString ("xmlData");

if (oldxmlData.Value.Length > 0) {
XmlDocument doc = new XmlDocument ();
doc.LoadXml (oldxmlData.Value);
OldVersion.Value = doc.SelectSingleNode("//root/@version").Value;
} else {
Fsm.Event(noData);
}
}
catch(XmlException ex) {
Fsm.Event (Failed);
Debug.LogError ("Error has occurred while fetching old version of xml data, ex: " + ex);
}

if (OldVersion.Value == NewVersion.Value) {
Fsm.Event (isEqual);
} else {
Fsm.Event (notEqual);
}
}

}

35
PlayMaker Help / Re: I Tween Rotate To action once worked and once not
« on: April 19, 2017, 07:13:16 AM »
Not really a resolution but have you tried using DotTween instead? It's faster and frequently maintained.

36
PlayMaker Help / certificate error on iOS
« on: April 18, 2017, 06:03:45 AM »
Hi,

When using the wwwPost mobile action with Amazon's S3 i'm getting the ssl certificate error

TlsException: Invalid certificate received from server. Error code: 0xffffffff800b010a

I'm aware that mono by default does not trust anything, I did import the certificates but error still persists. Anyone please? It's strange because few days ago it worked and now all of a sudden it doesn't...

37
PlayMaker Help / Re: Get Pixel
« on: April 15, 2017, 11:36:00 AM »
From what I can see, you are invoking the method in OnEnter, which launches when the state goes active. Also, you are constantly invoking the method in the OnUpdate.

OnUpdate should only be triggered if the bool is true, otherwise, do the OnEnter, and then finish it.

Also, you can set bool to be false by default.

See if this works, I've not tested this.

Code: [Select]
using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Material)]
[Tooltip("Get pixel color from a readable texture from a normalized vector2 position")]
public class Texture2DGetPixel : FsmStateAction
{

[ActionSection("Input")]
public FsmTexture SampledTexture;

[ActionSection("Position")]
[Tooltip("The floats to get the normalized position from, from 0 to 1")]
public FsmFloat xPos;
public FsmFloat yPos;

[ActionSection("Result")]
[Tooltip("Store the sampled color in a Color variable.")]
public FsmColor StoredColor;

[Tooltip("Repeat every frame while the state is active.")]
public FsmBool everyFrame;

public override void Reset()
{

SampledTexture = null;
xPos = null;
yPos = null;
                        everyFrame = null;

}

public override void OnEnter()
{
DoGetPixelCOlor();
            Finish();
}

public override void OnUpdate()
{
if(everyFrame.Value) {
                DoGetPixelCOlor();
            }
}

void DoGetPixelCOlor()
{
if (SampledTexture == null) return;

{
Texture2D SourceTexture = SampledTexture.Value as Texture2D;
int x = Mathf.FloorToInt (xPos.Value * SourceTexture.width);
int y = Mathf.FloorToInt (yPos.Value * SourceTexture.height);
Color StoredColor = SourceTexture.GetPixel (x, y);
}
}

}
}

38
PlayMaker Help / Re: Problem with UI Button and Animation / Animator
« on: April 15, 2017, 11:26:10 AM »
Can you post screenshots of your transform?

39
PlayMaker Help / Re: Need Help with Camera, Canvas & Background
« on: April 15, 2017, 11:21:04 AM »
I am not sure if I understand you correctly but are you trying to scale the background to fit all resolutions? If yes then all you have to do is to use anchors and stretch the background's transform automatically for all sides, the playmaker is not needed for that.

Let's say you have a box, and you set anchors for it to stretch 0.2 to 0.8, if you create a second box, and you attach that box to the first box, you can set the anchors on second box to stretch all sides, and then it will fill out the first box.

All the elements on a canvas, providing that they all have setup the desired anchors, will scale on all devices "correctly".

40
PlayMaker Help / Re: Spam Messages
« on: April 15, 2017, 11:12:24 AM »
Will do, Let me know if you need some extra help always happy to help.

41
PlayMaker Help / Re: Play Sound Issue
« on: April 13, 2017, 01:39:38 AM »
Sorry, I meant player settings -> Other settings :P

42
PlayMaker Help / Re: Play Sound Issue
« on: April 12, 2017, 08:24:20 AM »
For me, worked to tick off in the build settings option "prepare mic for recording"

43
PlayMaker Help / Re: PlayerSettings Validation
« on: April 12, 2017, 07:12:28 AM »
Have you added the right symbols in the build settings?

"Scripting Define Symbols" 

Sounds like an issue with that

44
PlayMaker Help / Re: Spam Messages
« on: April 12, 2017, 07:06:23 AM »
Can you not add on the google's re-captcha system? That should solve the issue, rather than switching to a whole new forum.

45
Why is that a global variable? They are static, so they stay in the memory. Can you not reset the variable after you've done or in the initial state before checking ? 

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