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 - Shawn Kilian

Pages: [1] 2
Android Help / PlayMaker causing Android game to run slow[SOLVED]
« on: August 05, 2019, 12:13:06 PM »

I have a game I've made that runs smooth as butter on WebGL and Windows PC, but if you port it to Android it runs at 60fps until my first enemy spawns, then it drops by about 10fps per enemy.  I found the issue to be PlayMaker. 

When I disable the PlayMaker component on my spawned prefab enemy, the game stays at 60fps, but the moment I enable the PlayMaker component on that prefab, the game drops by about 10fps.  Since I have 20 enemies, the framerate drops to nearly 5fps by the time they are all spawned.

As a test, I removed the PlayMaker component from my prefab enemy and ran the game.  The game stays at 60fps.  Then I added an empty PlayMaker component and ran the game, the framerate drops to 10fps again. 

What exactly is going on here?  Why does PlayMaker not want to play nice on Android?  In my test, there is not a single action on the PlayMaker component, so I don't see how it can be affecting performance.

Please advise!

Android Help / PlayMaker Touch 2D Object Events - Move vs Began
« on: January 31, 2019, 10:19:01 AM »
What is the point of the "Touch Began" event?  It seems useless since no matter what I do, the Touch Object 2D event always registers the "Touch Moved" event as well.

Basically, if I touch my finger on my phone and move it down the screen at the same time, I want my initial "Touch Began" event to be ignored because I am just trying to scroll down the screen, not touch an actual button...and Vise Versa, if I am just trying to press a button, it shouldn't think I am trying to move my finger down the screen.

PlayMaker Bug Reporting / PlayMaker YouTube Tutorials (Broken Links)
« on: January 31, 2019, 07:04:28 AM »
All of the YouTube video links on this page are currently linking to nothing:

Yes, the main video plays, but all of the videos below them do not.  I was able to find them on YouTube so all is good but I figured I should report this bug on your site.

PlayMaker Help / Cannot drag to re-order actions
« on: May 22, 2018, 03:20:24 AM »
I used to be able to drag actions up or down and re-order them on the fly.  Now I cannot do that.  Instead, I have to copy/paste the action using the "Paste Action Above" and "Paste Action Below" options and then delete the action from it's previous location so there are not duplicates.  It has dramatically slowed down my workflow.  Why was this change added?  Previous version of PlayMaker are working fine.

I am using Unity 2017.4.0f1 with PlayMaker 1.8.3.f4

PlayMaker Help / PlayMaker Editor causing slow framerate
« on: April 29, 2018, 12:34:37 PM »
I have been using Unity 2017.4.0f1 with PlayMaker 1.8.3.f4 and I've had no problems until a few days ago.  If I have the PlayMaker editor open AND the scene view open at the same time and I'm clicked on a game object that has an FSM, the framerate of my game drops down to 12fps and causes all sorts of errors while I am trying to test the game.  Things that were never broken are breaking.

However, if I click out of the PlayMaker editor and close scene view, my framerate goes back to normal (60+fps) and all the errors go away.

I haven't been able to make any progress on my game because of this problem.  I've tried opening old projects from a few weeks ago and they are also experiencing the same issue.

The published game experiences none of this lag because Unity and PlayMaker are no longer involved.

I am using a super high end computer, so it's not like my PC can't handle my game.

What could be causing this?  I love PlayMaker and have been using it since it's release.  I've never seen anything like this.

PlayMaker Help / Unity lost all extensions
« on: October 16, 2017, 10:34:22 AM »
I have been working on my project for months with no problems.  Today, in the middle of working on the project, Unity asked if I would like to upgrade (which it NEVER does) and I said "NO THANKS" and it re-imported all of my assets (but it did NOT update, since my Unity version has remained unchanged).  As a result, it removed PlayMaker and all other extensions I was using and my project is completely broken.

Is there any way to fix this?

PlayMaker Help / Get XML data from URL and store as String (Data Maker)
« on: August 25, 2017, 07:37:42 AM »
Hello  :)

I am using Data Maker actions in PlayMaker and would like to get XML data located at a URL.  The URL displays the XML data in the browser without me downloading it.  (see below)

Is it possible to store this data as a String in PlayMaker?

I've tried all the actions that come in Data Maker, but none of them seem to do what I need...or maybe I'm using them incorrectly.  Please guide me in the right direction.  Thank you.

I am using Global Variables to Get/Set Strings.  This works fine in the Editor.  It also works fine when I "Build & Run" as an Android app while my phone is plugged into my PC.  However, if I manually install the APK file via side-loading, my Global String Variables are no longer recognized.

Why would this be happening?

PlayMaker Help / How can I access a property from within a script?
« on: August 17, 2017, 12:07:13 PM »

How can I access the url string from this script?  I can't seem to access it using Get Property, Set Property or Call Method like I usually can from other scripts.

Code: [Select]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;

public class MomentaryOpen: MonoBehaviour {
void Start()

string authenticate(string username, string password)
string auth = username + ":" + password;
auth = System.Convert.ToBase64String(System.Text.Encoding.GetEncoding("ISO-8859-1").GetBytes(auth));
auth = "Basic " + auth;
return auth;

IEnumerator GetText()
string authorization = authenticate("none", "password");
while (true)
string url = "";

UnityWebRequest www = UnityWebRequest.Get(url);
www.SetRequestHeader("AUTHORIZATION", authorization);
yield return www.Send();


Android Help / Gesture Scrolling Limit on Android [SOLVED]
« on: August 15, 2017, 07:09:24 AM »

How can I limit the scrolling of a gesture swipe event?  When I swipe up, my screen scrolls down but it doesn't know when it's reached the end of the screen so it just keeps on going.  Whenever I put a float clamp on it, that works but not for every device since each device has a different screen width/height.  I tried using Get Screen Width and Get Screen Height but the values returned are always zero.

Am I doing this the wrong way?  I just want to swipe down to the bottom of my phones screen, then swipe up to go back to the top.  I figured it would be simple but I think I'm complicating it.  Please help!!!

PlayMaker Help / WWW Object Missing after publish
« on: June 09, 2017, 12:12:08 PM »
I was messing around with the WWWObject action and decided to publish my game to WebGL.  Now PlayMaker no longer has the WWWObject after I published to WebGL.  Why is the WWWObject gone?  I can't even find it in the ACTIONS panel anymore.  Literally ripped clean from my project.

I need to change my Animator Controller on the fly.  I was able to achieve this by using "Set Property" and choosing runtimeAnimatorController and changing the "Set Value" to the Animation Controller I want to use...however, it only works in the editor.  When I publish the game, it freezes when this command is sent.

I read on this forum that I need the EcoSystem, so I downloaded it and searched for "Set Animator Controller" but nothing shows up.  Any thoughts?

Instead of using runtimeAnimatorController, I simply removed that action and placed my animations on seperate layers within the same character controller and called them by weight using Set Property.


I want my enemy Sprite to always look at the Player.  When the player gets in range, I have a trigger that sets the Property on the enemy Sprite Renderer to Flip X to get the enemy Sprite to look at the Player.  However, it doesn't know if the Player is on it's right or on it's left so the enemy Sprite gets stuck facing the wrong direction.

Here is a short video of what is happening

Any ideas?  This is driving me nuts!

I continued to dig and found this post from user escpodgames who said:
You could...

Get the enemies Xposition
Get the players Xposition
Subtract the enemies Xposition from the players Xposition
Compare the results, greater than 0 would set the Xscale to 1 and less than to -1.

I did this and it actually worked!!! Thank you so much.  I truly appreciate your help. is the direct link to the thread that solved my issue.

PlayMaker Help / WebGL export is wrong
« on: March 11, 2017, 10:33:04 PM »
My game works fine in the Unity Editor and publishes fine as a PC stand alone.  However, when I publish as a WebGL game, it totally breaks.  My sprites don't animate.  Look at the ants in the following 2 short videos I recorded...

Here is the game working properly in the editor:

Here is the game not working properly in WebGL:

Why is this happening?  I cannot figure it out.  Please help =)

Share New Actions / 2D Sprite Animations Overlapping
« on: January 15, 2016, 02:05:53 PM »
Hello friends,

I am playing a 2D sprite animation on my character.  When I press "a" my character animates to the left.  When I press "d" my character animates to the right.  When I press neither "a" or "d" my character should sit in the idle animation state.  However, the three animations are conflicting with each other and sometimes they override each other at the wrong times.  Any ideas?  Thank you.

Pages: [1] 2