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 - Adam Z

Pages: [1] 2 3 ... 5
1
PlayMaker Help / Help with character movement based on position of object
« on: November 21, 2019, 08:20:55 AM »
Hi. So I'm trying to animate a character based on a position of an object. My character has an animator controller with forward, backward, and strafing movements. A typical multi-directional movement system (2D Freeform Directional).

So what I'm doing is using a 'Get Position > Self' in both X and Z of that object. The object does fluctuate slightly, so it might start at an X: 0.135 and a Y: -0.0214, etc. but fluctuate by .1 or .2 in +- on X and Z.

Ideally what I would like to do is if the object in X is equal to or greater than 0.5, then start my characters forward movement by using a 'Set Animator Float'. But what I need is when X is at 0.5 then the set the Animator variable called 'Forward' to 0.1 so the character is slightly moving. And if X is 1.0 for example, have 'Forward' be at 1.0.

Because the object isn't centered at 0,0 and fluctuates, I need to adjust for that. I also would like this all in one state so multiple 'Set Animator Float' Actions can be use for all directions.

So I'm trying to figure out all the Actions I need to accomplish this:
'Get Position > Self' so I know the starting X and Z of the object.

An Action(s) that says if X is 0.5 then set float in animator to 0.1. If X is 1.0 then set float in animator to 1.0.

Any thoughts would be helpful. Thanks!

2
PlayMaker Help / Oculus S Playmaker support?
« on: September 03, 2019, 08:32:47 AM »
Does anyone know if there are Playmaker actions for the Oculus S? I know there's a Oculus Touch Toolkit that someone developed, but not sure if that will work with it.

Thanks,
Adam

3
PlayMaker Help / How to access a GUI button inside a script?
« on: August 13, 2019, 08:18:49 PM »
So I have this script:
Code: [Select]
void OnGUI () {
// Enable Word warp
GUI.skin.label.wordWrap = true;
// Make a background box
GUI.Box(new Rect(10,10,300,150), "Chat with a Chatbot");
// Make output label
GUI.Label (new Rect (20, 30, 280, 40), Output_Text);
// Make a text field that modifies Input_Text.
Input_Text = GUI.TextField (new Rect (20, 100, 280, 20), Input_Text, 100);
// If send button or enter pressed
if(((Event.current.keyCode == KeyCode.Return)||GUI.Button(new Rect(250,130,50,20),"Send")) && (Input_Text != "")) {
// Prepare Variables
// You don't need to care, wether Only Jurassics or only Program #'s Variables
// are changed. This is managed immediate intern every time you change a global
// variable in Program # or Jurassic.
// bot.jscript_engine.SetGlobalValue("abc",15);

request.rawInput = Input_Text;
request.StartedOn = DateTime.Now;
result = bot.Chat(request);
Output_Text = result.Output;
Input_Text = "";

// Gather Variables
// bot.jscript_engine.GetGlobalValue<string>("abc");
}
}

And I need to access GUI.Button "Send". I tried dragging the script into a State, but I'm not sure what to select to access that button. Any thoughts?

Thanks!

4
PlayMaker Help / How to get negative y rotation?
« on: August 06, 2019, 05:45:35 PM »
I have a mesh that gets rotated along the Y using the mouse. If I select the object and move the mouse left, I get a negative Y number.   If I 'Get Rotation' of that object and store the Y in a float, I always get a positive number (0-360), even if the actual Y rotation of that object is negative. How can I actually get the correct world number?  Thanks!

What I'm trying to do: if the Y rotation is more than 45, trigger an event. If it's more than -45, trigger a different event.  So I was using a 'Float Compare', but since I can't use a negative number, I can never trigger the other event.

5
PlayMaker Help / [SOLVED] Unitys Shadergraph Float access?
« on: March 13, 2019, 10:55:23 AM »
Hi, for some reason I can't access my Materials float when I created it with Shadergraph. Any thoughts?

Thanks.

6
PlayMaker Help / Points Pool help
« on: November 26, 2018, 08:36:21 AM »
So for my game I have 4 sliders: Strength, Speed, Constitution, and Intelligence. Each of those sliders are set to 50 out of 100. I would like to give the player 100 extra points to the "point pool" to distribute to those sliders. I would also like the player to be able to reduce the other sliders to add to that "point pool".

Any thoughts on the best way to do this? Thanks.

7
PlayMaker Help / How to invert a float?
« on: November 25, 2018, 03:29:36 PM »
Hi,

So I have a Strength slider, 0 to 100. But my characters base model was modeled at his muscular size (so Blend Shape 0), and the Blend Shape for his normal body size (skinny) is at 100. So currently when the Strength slider is at 100, the model is at his skinny body size.

What I'm trying to do is reverse the float; so when the slider is at 0 the Blend Shape is at 100, and visa-versa.

Any thoughts aside from editing the model?

Thanks.

8
PlayMaker Help / Help with Collision Event in a jump system
« on: October 10, 2018, 01:24:00 PM »
I'm trying to figure out how to do a jump system with the 'Character Controller'. All the surfaces the player can land on are tagged with "Surface".

 My initial idea was to use Collision Event > On Collision Enter/On Collision Exit > Collider Tag: "Surface" to determine if the Character Controller is on a mesh with the "Surface" tag or in the air. That doesn't work at all. I even tried to add another Capsule Collider to my player that already has the Character Controller attached, but that didnt work either.

The only thing that does seem to work is setting the the Action to 'On Controller Collider Hit', but there is no reverse of that.

Any thoughts?

Thanks!

9
PlayMaker Help / Jump and fall setup help using Collision Event
« on: February 08, 2018, 01:31:05 PM »
So I have a basic jump/fall setup using 3 States. All the objects the player can land on have a "Ground" tag. The 3 States are:

"Waiting" State
  • "Get Button Down" for jumping. Transitions to "Jump" state when pressed.
  • "Collision Event" > On Collision Exit with Ground as the Collider Tag. Transitions to "In Air" state when the player starts to fall.

"Jump" State
  • "Set Velocity" on the Y axis. Transitions to "In Air" state.

"In Air" State
  • "Collision Event" > On Collision Enter with Ground as the Collider Tag. Upon collision with the "ground" tag, transitions to the "Waiting" state.

So the ideal is when my players capsule collider leaves a "ground" id tagged object, the character is falling. It works except when there is a slope. I'm using a cube with a box collider, scaled as a ramp, and then angled. It seems that the angle causes the "In Air" State to activate when I transition from a horizontal plane to the slope. I don't think the angled collider plays nice with the capsule collider.

Any thoughts on how to fix this or use another solution?

Thanks.

10
PlayMaker Help / How to Get Position of a cloned object?
« on: December 20, 2017, 08:45:46 PM »
I'm using a C# script that takes a Prefab from my Project folder, and clones it when the Scene plays. I'm trying to get the position of that cloned object (every frame), and set the position (every frame) of another object that's in my Scene Hierarchy to the cloned one.

Any thoughts on how to do this?

Thanks.

11
VR Help / Playmaker Actions for Mixed Reality
« on: December 20, 2017, 08:19:46 PM »
Anyone have any Playmaker Actions that they'd like to share?

I'm not a programmer, but I would like to be able to use the Motion Controllers. Right now I'm using the 'MotionControllerVisualizer.cs' script, but it seems that I can only attach a prefab in the Inspector that's in my Project directory, not in the Scene. I need to be able to attach my object that's in my Scene.

Thanks.

12
PlayMaker Help / How to use the controller stick to rotate my character?
« on: November 20, 2017, 08:37:52 PM »
My brain is fried tonight so I can't seem to figure this out. What I'm trying to do is rotate my character on the Y axis when I move my controller stick left and right. Any thoughts on how to do this?

Thanks!

13
PlayMaker Help / Possible to start transition from another FSM? [SOLVED]
« on: October 11, 2017, 02:15:10 PM »
I have UI buttons that have a "Play Maker U Gui Component Proxy" attached. I also have an FSM on that button which gets triggered with ON CLICK.

I also have a Game Object with has an FSM on it to Enable and Disable my GUI panels.  Those are enabled/disabled within the different states. As an example; the FSM starts on the Main Menu state. When the "To Single Player" event occurs, it transitions to the Single Player state.

What I'm trying to do is have the button FSM tell the Game Object FSM to transition to a different state, using an Event?  Is that possible? 

Thanks.

14
PlayMaker Help / How to parent a prefab that gets loaded?
« on: August 25, 2017, 11:21:06 AM »
Im using a 'Create Object' node to load a Prefab. After it gets loaded into my scene, I would like to parent that prefab to another Game Object that's already in the scene.  I tried using the 'Set Paren't node, but that's not working. Any suggestions?

Thanks.

15
PlayMaker Help / iTween for Hip rotation?
« on: May 03, 2017, 02:22:07 PM »
Anyone have any ideas on how to get more hip rotation out of my generic walk cycle? I was trying different iTween actions with Ping Pong enabled on my hip bone with little success.

Thoughts? Thanks.

Pages: [1] 2 3 ... 5