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

Pages: [1]
PlayMaker Help / Creating 2D Rope & Swinging for Platformer
« on: July 28, 2016, 02:59:25 PM »
Hi everyone,

I'm currently working on a 2.5D platformer and have been having a tough time with creating a rope. The models are 3D just for visual appearance, but everything has been set up as 2D objects (colliders, rigid bodies, etc). I've watched a bunch of Unity tutorials and Playmaker tutorials and learned a lot - but I can't get the rope behaving the way I would like.

The player can throw an object, and when that object touches a rope hook it activates the rope (which is a child of the rope hook, initially turned off).

I created the rope out of 6 cubes chained together with 2D hinge joints. Testing the rope in scene by pulling on the last chain seems to be working fine. I put a grip point onto the last segment of the rope that when touched by the player holds the player onto the rope (and does some other stuff mainly related to the animator and character controller). When the player touches the segment of rope they attach, but I would like the rope to swing back and forth when the player has input on the horizontal axis (either keyboard A & D or joystick).

I've tried a few different things:
-Checking for player trigger enter/stay, checking input, last rope segment move towards player. (The closest thing I've found to what I want, but the player still can't really swing... The rope segment just follows the player as the player model freaks out.)
-Checking for player trigger enter/stay, checking input, smooth follow to player. (Caused the grip point & rope segment to rotate on the X axis and thus the 2D box collider fails.)
-Checking for layer trigger enter/stay, checking input, enabling motor and set motor speed on hinge joints according to player - or + input. (Sort of simulates swinging but the player has no control, and rope would often fold up on itself.)

Does anyone have any other suggestions? Thanks in advance.


I know that global variables created with Playmaker are stored into the Assets > PlayMaker>Resources>PlayMakerGlobals.asset. Are global events stored in the same location?

We have a small team and we use SVN to commit the project to our host repository. Just want to make sure we don't overwrite each other's work! If I've created a global variable and another team member has created a global event, would this create a conflict?

Thanks in advance!

Thank you so much for this information. It was really helpful for setting up controller input in my project.

I'm building on Windows 10 with Unity 5.3.4, using an Xbox One controller.
The LT is bound to the 3rd axis, and the RT is bound to the 6th axis.

I struggled for quite a while to find that info, but finally found it here:

It was previously mentioned in this thread that using Windows it only ranges from 0 to 1. In my experience in this past week, on PC my triggers do range from a value of -1 to 1, just as Mac does.

Windows Xbox One axis controller mapping:
Left Trigger - 3rd axis, ranges from -1 to 1.
Right Trigger - 6th axis, ranges from -1 to 1.
DPAD Horizontal - 7th axis, ranges from -1 to 1.
DPAD Vertical - 8th axis, ranges from -1 to 1.

-1 = resting state (not depressed)
1 = fully depressed

PlayMaker Bug Reporting / Re: Set property broken?
« on: July 05, 2016, 05:22:10 PM »
Thank you SO much, Alex. This was driving me crazy, too! It works beautifully with the quick fix. :)

PlayMaker Help / Problem Storing Negative Scale X Value
« on: June 23, 2016, 01:31:48 PM »
Hey everyone,

I've been working with a great 2D platformer motor I found on github, but I'm trying to integrate a few of my own player actions with Playmaker. My player character is a 3D object for aesthetics only, but is being treated like a 2D object (2D collider, 2D rigidbody, 2D motor, etc).

The way the motor works is when the positive horizontal input (in this case D) is pressed the character moves to the right and has a scale of (1,1,1). When negative horizontal input (A) is pressed the character moves to the left and has a scale of (-1,1,1) which flips the object in the opposite direction.

I'm setting up the character's ability to throw objects, and those objects are having force added to them on creation. I'm using the Get Scale action to find the scale X value of the character, and storing it in a global float. The problem I'm having is that the global will never store the negative value, only the positive, so my check always comes back as applying the force in a positive direction.

Is it possible to store negative values into floats? Maybe I need to use a different action? Thanks in advance.

User Showcase / Re: Finished Projects Made With PlayMaker
« on: February 26, 2016, 05:55:27 PM »
Hey everyone!

We're an indie studio called Plus 5 Games. We launched our first game, The Lonely Archer, this week on the Google Play store! We made the game in Unity with Playmaker. Check it out, and if you enjoy our game please rate it!

Download from Google Play for free:

Follow us on Facebook:

Follow us on Twitter:

Character Introduction - Sterling:

Thank you! :)
Plus 5 Games

PlayMaker Help / Re: Unassigned Reference Exception
« on: November 04, 2015, 08:50:40 PM »
I did some further testing to try to figure this out.

I rebuilt the entire system on fresh objects in a fresh scene. Everything worked as intended, and once I had that working I prefabbed the objects to see if that was the issue.  I do believe the problem is originating from the objects being prefabbed.

PlayMaker Help / Unassigned Reference Exception
« on: November 04, 2015, 03:46:42 PM »
Hi everyone,

I'm not sure if this is a Playmaker specific issue, but I'm getting this message:
UnassignedReferenceException: The variable adCanvas of AdCanvasActivate has not been assigned. You probably need to assign the adCanvas variable of the AdCanvasActivate script in the inspector.

What I am trying to do:
-Have one object in charge of spawning clickable clouds.
-When the cloud is clicked the game pauses (working) and enables a canvas asking the player if they would like to watch an ad for a reward.
-Since I've had no luck activating/deactivating game objects through many PlayMaker means, I'm running a script on a separate object that gets the public canvas and buttons and their components and enables them. (I've used an almost identical script that controls all of the front end menus perfectly.)
-Eventually this will play a Unity ad, but I haven't gotten that far yet.

What I don't understand is that the object running the script has all of it's necessities linked in the inspector. All of the other FSM behaviour is working, but it skips Invoking Method because of the error being thrown. Even more odd is that it worked briefly and activated the canvas, but none of the buttons were active. Once I went back into the script to activate the buttons it stopped working. I feel like I'm missing a small detail somewhere.

Initially I had the canvas enabling on the ad cloud object itself once it has spawned in, but since it destroys itself after being clicked it couldn't continue to run the canvas script.

What I have tried (or, at least, that I remember trying):
-Using Playmaker exclusively to activate a game object (canvas and child buttons) on click.
-Creating a script on an object to activate the canvas/buttons instead.
-Having a different object run the script.
-Renaming objects.
-Recreating FSMs and prefabs.
-Storing the canvas in a gameobject variable and calling that gameobject to enable in FSM.

I saved a few screenshots as well that you can find here:

I think I've just been looking at it for too long!
Any help would be greatly appreciated!

PlayMaker Help / Re: Loading level Get Mouse Button Down
« on: October 26, 2015, 08:48:09 PM »
Thank you very much for the help! That pointed me in the right direction.

I have run into another problem. My menu system seems to only flow through one way, and can't back track to the home menu. I'm not sure where the issue is in my Playmaker logic.

From my home screen I can enter the store, but from the store I can not use the home button to return back to home. I have tried using Activate/Deactivate Game Object in the On Click event, as well as tried Create/Destroy Game Object. The store menu clearly activates upon the store button click (the button text turned on, which normally I have been keeping off). But none of the buttons remain clickable, and it just remains in the start state forever.

Worst case scenario, I know I can just make my menus through the existing Playmaker GUI options (without the Ecosystem) but I am hoping to find a way to solve this problem using the uGUI Ecosystem pack.

PlayMaker Help / Re: Loading level Get Mouse Button Down
« on: October 26, 2015, 05:08:55 PM »

I'm trying to do something very similar. I built a bunch of canvases before I purchased and installed Playmaker. Is there a way for me to use a pre-existing GUI button, rather than creating one on run-time through Playmaker visual scripting? With Get Button Down/Get Mouse Button Down it doesn't matter where I click on screen, but I would like the player to click the "Play" button to load the level.

Pages: [1]