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

Pages: [1]
1
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?

2
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.

3
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?

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

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()
{
StartCoroutine(GetText());
}

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 = "http://myURLexample.com";


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

}
}
}

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

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

6
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.

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

**UPDATE**
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.

8
Hello,

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 http://screencast-o-matic.com/watch/cbfv0KXFxI

Any ideas?  This is driving me nuts!

**UPDATE**
I continued to dig and found this post from user escpodgames who said:
Quote
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.

http://hutonggames.com/playmakerforum/index.php?topic=9027.msg43124#msg43124 is the direct link to the thread that solved my issue.

9
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:
http://screencast-o-matic.com/watch/cbelht64mn

Here is the game not working properly in WebGL:
http://screencast-o-matic.com/watch/cbelhw64mj

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

10
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.

11
Playmaker Help / How to store a prefab as an "Object" variable? [SOLVED]
« on: December 30, 2012, 03:00:14 PM »
**I already know the difference between GameObject variables and Object variables***

I spawn a player prefab.  When the player jumps into a pit, I destroy the player. 

When the player hits spacebar, I respawn the player prefab at the same location it was destroyed.

This is where I'm stumped.  I have a "follow" script (see below) on my enemy prefab.  The enemy normally follows the player with no problem...but after I've destroyed the player prefab 1 time, the script loses it's reference to the player prefab and the enemy no longer follows the player.  How can I make the script below keep it's reference to the player target? 

Code: [Select]
var target : Transform; //the enemy's target
var moveSpeed = 10; //move speed
var rotationSpeed = 310; //speed of turning

var myTransform : Transform; //current transform data of this enemy

function Awake()
{
    myTransform = transform; //cache transform data for easy access/preformance
}

function Start()
{
     target = GameObject.FindWithTag("aggro").transform; //target the player

}

function Update () {
    //rotate to look at the player
    myTransform.rotation = Quaternion.Slerp(myTransform.rotation,
    Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime);

    //move towards the player
    myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime;


}

I've already tried setting the "target" property of the script but it only allows me to use an "Object" variable.  I can't seem to get anything other than a script to sit in the "Object" variable.  Normally I just find a "GameObject" by tag and store it as a variable.  That doesn't work when dealing with external scripts though.  Any help is greatly appreciated.  Thank you.

12
Playmaker Help / Error Loading Action [SOLVED]
« on: December 19, 2012, 06:30:51 AM »
[SOLVED]

edit: I'm so confused why this fixed my issue...but instead of targeting a game object directly or through a tag or a variable, I simply removed ALL of them and PlayMaker still somehow knows what I am referencing.  It's amazing!  I literally tell it to scale NOTHING and it scales a specific object perfectly.  So weird!!!

So, the first time I play my game I see the error below but it still lets me run the scene and all the actions work properly.  However, whenever my character dies and I reload the level it pauses my game, provides the same error again on my prefab and completely stumps me:  

Error loading action: prefabMosquito : FSM : destroy : HutongGames.PlayMaker.Actions.SetScale : vector

Even when I completely remove the "SetScale" action I still get this error.  I even deleted the prefab altogether and I still got this error.  I even deleted all vector variables and attempted re-installing Unity and re-installing PlayMaker but it's still giving me this error.  I can't move on with my game until I solve this issue.  Please help!  Thanks.

13
I instantiate a prefab at runtime.  It starts at a scale of:
X = 3
Y = 3
Z = 3

When the prefab hits a trigger, the prefab needs to increase in scale by 1.  So the new scale would be:
X = 4
Y = 4
Z = 4

...etc

Currently, I can only get it to SET my scale to 1 instead of actually INCREASING my scale by 1.  Please help!  Thank you!

14
Playmaker Help / Camera Switching [SOLVED]
« on: December 08, 2012, 10:51:01 AM »
How can I switch the depth of my cameras in PlayMaker?  I am so frustrated I've spent days trying to figure this out and I watched the tutorials but they don't cover it.  Please help.

Pages: [1]