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

Pages: 1 [2] 3 4 ... 8
PlayMaker Help / Re: Is an Object in Front or Behind Another Object?
« on: August 20, 2019, 06:31:04 PM »

So what exactly are you trying to do with this as that will determine how to approach it.

What you can try is putting a collision box behind the player and parent to the player.  Anything within that box can be consider behind them but may not work if you need to detect further away.

PlayMaker Help / Re: How to manage lots of UI Button changes
« on: August 13, 2019, 08:51:38 PM »
Thanks Jean!

At least now I know I'm on the right path.  There is very little online for UI tutorials other then the simple 1-3 pop up windows.  I was just worried I was missing something huge and was doing it the hard way.  Sounds like UI in general is just bulky. 

Will try your tips as well.  May save me a few headaches once I get a few layers deep in UI :)


PlayMaker Help / How to manage lots of UI Button changes
« on: August 08, 2019, 08:28:00 PM »
Hey guys,

I've always struggled with how to handle UI buttons constantly activating/deactivating with my RTS project and was looking for some advice.  My basic setup currently is whenever you click on a unit/building, that send an event to activate X buttons in an array and also hands them an Int Button ID . When X button is clicked, it shoots that button ID to a logic check FSM to see what action to do.

This works for the most part but is very chunky and bulky as I have to reset icons and values constantly.

Thanks for any help anyone can give!

PlayMaker Help / Re: How to get negative y rotation?
« on: August 06, 2019, 08:12:47 PM »

What I'd try is storing the original rotation before it moves and then store the end rotation after its done moving.  Take the first rotation value and subtract it from the new rotation value. 

That will give you the angle it moved at and can use that value how you'd like.

PlayMaker Help / Re: Mouse Drag and Move Object!
« on: July 23, 2019, 05:43:58 PM »

I'd try using a mouse pick event action instead and store that V3 to a variable.  Then use that Variable as the target for the cube to move towards. 

You'd have to set up layers for the mouse pick event as well otherwise when the cube reaches the mouse, it you come crashing to the screen as its always targeting the spot on the cube.

Let me know if that helps.


PlayMaker Help / Re: PlayMaker is inconsistent.
« on: May 06, 2019, 11:10:55 PM »
Hey there,

So first off those var names are really hard to follow along without getting confused lol. 

Second I believe this is the source of your problem.  Need to use a variable as the parent for those 2 objects will turn out to be the same every other time which is the result you're getting. 

If that wasn't the fix let me know and I'll look a bit closer once I leave work :P

PlayMaker Help / Re: PlayMaker is inconsistent.
« on: May 06, 2019, 10:10:15 PM »
Hey there,

I'd guess you got something set up wrong with the states/order of events.  I can't quite tell from the pictures what the issue is without seeing the states and how they flow.

Are you able to post the state machine you think is causing the issue as well as the action in them?

Hey there

Awesome, didn't know about that action.  That will work perfectly for me


Hey guys,

I'm making an RTS style project featuring large armies.  When I got two armies fighting each other, that initial clash tends to be both sides focusing down 1 guy (The one that triggers the fight) before spreading out to different targets. 

I'm hoping this action can find the closest target and have a Loop event into a new state.  At that state, I can check if the current target is engaged and then loop back to find the second closest unit if needed.

Not sure if there is something out there already for this but I couldn't seem to find anything.


PlayMaker Help / Re: Invert Horizontal Axis.
« on: April 02, 2019, 09:53:18 PM »
Hey there,

I'm not exactly sure what you're trying to do.  Can you explain a bit more in detail how your camera and character work/move about (Ex third person, over the top, click to move ect.)  The more info I got the better I can help with

If its a simple inverse though, just doing a check if the rotation is greater then 90 then using a multiply by -1 to inverse would work.

I feel like you may be making it a bit more complex then it needs to be but I need more info to help more.


PlayMaker Help / Re: Fixed Camera Character Alignment Issue
« on: March 31, 2019, 04:24:50 PM »
Hey there

Have you tried my solution I said at the start?  I believe that should solve the issue described unless there is another problem that pop up/ I don't know about.

Storing the camera's current location and only updating that once the player stops movement will let you use the starting camera position as a reference regardless  where it currently is.

Let me know if that helps.

PlayMaker Help / Re: Array List Events
« on: March 28, 2019, 07:13:49 PM »
Hey Jean,

Yes, I'd like to be able to create a array list and add those proxy events into it as well.  Would make it alot easier in my project handling those arrays if I can do that.


PlayMaker Help / Re: Question regarding length of Mouse Over
« on: March 25, 2019, 05:17:49 PM »
Hey there

So what exactly are you trying to do with your project?  I'm assuming you only want to pick up objects that are close to the character/camera? 

What you need to do if thats the case is just do a simple distance check to whatever you're using.  When an object gets mouse over event, have it do a quick compare using the distance from the object itself to the object you are limiting. 

Let me know if that helps otherwise let me know a bit more about the project itself so I can help better.


PlayMaker Help / Re: Fixed Camera Character Alignment Issue
« on: March 25, 2019, 03:14:34 PM »
Hey there,

How exactly is your camera working?  I'm a bit confused why its base off of player position?

What I'd do if I was you is make an Array for each camera position.  Once you have all your preset locations plug into the array,  all you have to do is get the index and set the camera V3 to that index. 

If you got a ton of positions,  you can even make multiple arrays to help organize it better so you don't confuse yourself later (EX Array Name House hall way, Outside, Roof ect...) 


PlayMaker Help / Re: Playmaker loses focus when editing FSM
« on: March 23, 2019, 03:19:35 AM »
Just replying for others to see since I saw others had this issue.

This was 100% caused by the Global Variable Window.  As soon as I close that tab, it went away and never lost focus. Tried a few other windows and re-opening the global window for testing and can confirm.  If anyone has this issue then close the Global Variable window.

Playmaker Version - 1.9.0
Unity Version - 5.5.1f1

Pages: 1 [2] 3 4 ... 8