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

Pages: [1] 2
1
General Discussion / Re: Scrolling Background
« on: January 24, 2017, 07:00:32 PM »
Just wanted to bump this old thread to see if Jean or anyone has a solution to to the problem of floating point errors that you would run into with the current setup.

Been trying to get an "endless driver" going for a bit now, and I'm pretty close. The package Jean posted up above helped a ton.

Thanks in advance for any help!

2
General Discussion / Re: PlayMaker Chatroom
« on: October 28, 2016, 10:28:29 PM »
quick question guys how do you convert an int to text with playmaker?

Convert Int to String I believe.

3
General Discussion / Re: PlayMaker - Xbox One, PlayStation 4
« on: October 28, 2016, 10:19:13 PM »
Nabbed a demo code, I'll look to give some feedback later. Looks really good!

I'm using SmoothSave for Playmaker myself, but I'm not sure if that works with Xbox/Playstation. Just throwing that out there; I'll shoot an email to the dev and report back with what he says.

4
Playmaker Help / Re: Convert float to... float
« on: October 24, 2016, 06:40:21 PM »
Hi,
If you are using a ugui slider you can use the action "U Gui Slider Get Normalized Value"
If you can not find the action you should get the 'ugui proxy full' package from the Ecosystem

This was exactly what I needed, very easy to implement. I had an animated element that I wanted to control in accordance with the slider (an "awareness meter" and an animated eyeball for a stealth game).

All works great now, appreciate it.

5
Playmaker Help / Re: Move towards and return
« on: October 23, 2016, 10:02:08 PM »
I don't have a detailed answer (hopefully someone else chimes in with one), but it sounds like you're making some basic guard AI. Just wanted to plug this AI series. I ended up going with Behavior Designer for my AI, but this series helped me understand some basics of Playmaker, and would probably help you in this department.

https://www.youtube.com/watch?v=EFo7vd-L9ug&list=PLCFBBA6A7A7BB34F8

6
Playmaker Help / Re: Convert float to... float
« on: October 23, 2016, 09:59:22 PM »
Just thought I'd simplify my question; I want one float that is clamped between 40-80 to control the interpolation of another float that is clamped between 0-1.

7
Playmaker Help / Convert float to... float[SOLVED]
« on: October 23, 2016, 07:13:01 PM »
So, I thought this might be easy (you've probably heard that before), but I'm hitting a roadblock.

Basically, I have a slider that has it's value set between 40-80. I want to control an animation using Set Animation Time, which requires a value between 0-1.

I'm looking to sync the animation with the slider, basically taking the sliders float value of 40-80 and converting that to a 0.0-1.0 to control the animation. 

I tried messing with Convert Float to Int, and then converting that back to a float, but I'm not getting the synchronous behavior I need. I think this should be relatively simple, but I'm here to learn.

Thanks in advance for any help, let me know if more explanation is needed.

8
Playmaker Help / Re: Fading in an Alpha Value
« on: September 25, 2016, 07:07:55 PM »
Gotcha, appreciate the explanation and all the help.

Looking forward to contributing more to this community once I get some more fundamentals down.

Thanks again.


9
Playmaker Help / Re: Fading in an Alpha Value
« on: September 25, 2016, 09:52:53 AM »
Ha ha, wow, that was it. I have a beautiful fade now; and egg on my face.  :o

Thanks for the help, learning a lot here.

IF you don't mind and have a little time, I have one more small question. You mentioned that it's best to avoid using "Get/Set Property", could I ask why that is? I use it pretty frequently right now, and I just want to know if that's a habit I should nip in the bud early on.

10
Playmaker Help / Re: Fading in an Alpha Value
« on: September 24, 2016, 08:53:25 PM »
I appreciate the detailed support.

Still having an issue, but I must be almost there.

Right now, as soon as the second state is activated, the GUI image just pops right up, still no fade.

You mentioned that in "Graphic Set Color", you should set the Color Alpha to "New Alpha" (in my case, I'm using "Alpha Visible). When doing that though, the alpha is instantly set to 255, rather than running through the interpolation. So instead, I used a third float variable called "Newspaper Alpha Float" that is used in "Graphic Set Color" as well as the stored alpha in "Get Color RGBA".



So to surmise, my variables are as follows:
Newspaper Alpha (Color Variable).
Alpha Invisible: 0.
Alpha Visible: 255.
Newspaper Alpha Float: 0.


Sorry if I've missed something obvious here; you've been a big help.

EDIT: And to clarify, Newspaper Alpha Float DOES seem to be interpolating correctly, just no fade.

11
Playmaker Help / Fading in an Alpha Value
« on: September 21, 2016, 11:13:22 PM »
Hello everyone. I've been at this (I thought) relatively simple task for a few hours, to no avail.

I'm trying to fade in an alpha value on a GUI element, and I just can't get it to work. I'll walk you through what I'm doing here; I'm hoping to learn what I'm doing wrong here.

First, I'm using the GET Property Function to grab the "color.a" value and store it in a float variable called "Newspaper GUIAlpha"




Then, I'm using the "Float  Interpolate" function to interpolate the value of "Newspaper GUI Alpha" (which is initialized to 0) to 255 over 5 seconds.



This has no effect, though. I have also tried using "Float Animate" to no avail.

Am I using "Get Property" wrong? Thanks in advance for any help; looking forward to expanding my knowledge here.


12
Playmaker Help / Re: Set Animator Float Incrementing Float...
« on: August 02, 2016, 10:54:28 PM »
Whelp, I actually figured out the "why", but if someone wants to elaborate on the "how", that would surely be appreciated.

I had a RigidBody attached to my Guard character, and on removing that the variable "Speed" stopped incrementing and behaved as normal. I assume this has something to do with how Unity handles physics.

Don't have a RigidBody on a mecanim animated character!

13
Playmaker Help / Set Animator Float Incrementing Float...[SOLVED]
« on: August 02, 2016, 07:39:44 PM »
Frustrating problem here, only because I've had this working before and now I've seem to run into a roadblock.

On my "guard" character, I have a "Speed" variable that is used to determine whether he should be idle/walking/running.

In my "Get Speed" FSM, I'm using a "Get Property" action to grab the velocity.magnitude of the NavMeshAgent, and then using the "Set Animator Float" to set the "Speed" variable equal to it.



Now, the "Set Animator Float" state is incrementing my "Speed" variable and not setting it equal. I've pretty much determined that the "Set Animator Float" action is the culprit, as with it turned off, the "Speed" variable does not increment (this behavior can be seen in the linked video).

https://youtu.be/Klc63WCsfQo

Anyone know what's going on?

14
Playmaker Help / Re: Pause game when alt+tab is pressed
« on: August 01, 2016, 01:56:12 PM »
Thanks for the link to that asset; I try not to default to the asset store too much, but when you're a one man studio, you've gotta pick your battles.

15
Playmaker Help / Re: Open Level Exit When Array Value is Reached
« on: July 08, 2016, 12:11:54 AM »
Great advice, using an int compare worked like a charm. I appreciate it; I guess I was overthinking things with the arrays.

Thanks again bud.

*Quick note to people whom may stumble on this; I found a great little action called "Collider Set Is Trigger" on the Ecosystem. This let me keep the collider active to block the player from exiting the level, and then when the Int Compare was satisfied, it switched the collider to a trigger, which activates the next level load.

https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Physics/ColliderSetIsTrigger.cs

Pages: [1] 2