Like the title...
What I need to figure out is how I can get the player to move while they're on a moving platform and move with that platform... It's a standard game mechanic but I'm having a hard time adapting the video tutorial (which deals in code) to PlayMaker.
Here's the video I'm referencing. In code it seems relatively simple... But I'm having a difficult time wrapping my head around how I'm going to get this working using PlayMaker.
Attached is the way I've got it set up for now... The first shot shows the three actions that give me the custom gravity.
I've also got the "set velocity" being what drives the movement... I know it's a little odd but it's the cleanest way I could figure out how to do this since I was getting some really odd results with the "translate" and the character controller would throw some even odder results... So, I am somewhat limited in how I can approach this.
If you want to see other bits of this, feel free to ask and I'll do what I can.
As for how I have tried to address this... Well, I tried the suggestion in another thread to change up the parenting to make it a child of the platform while it's on there but that didn't give me nice results for what I wanted (when I tested I noticed a slight jumpiness as the parenting did it's thing.)
What I have to work with:
-I have a system that detects what it's standing on and determines what it is (if it's a moving platform or not) this uses raycasts. This system is also important to detect when it's grounded or not (since I had to scrap the use of the character controller component, I had to cobble together my own "is grounded" checking system... That is the same system that the "am I on a moving platform?" test uses so I'd rather not have to re-roll that element.
Any ideas? The biggest hurdle I've been trying to figure out is how do I calculate the movement of the platform itself to feed into the "movement = movement + platform movement distance" thing (as outlined in the video.)
I know this is long. Thank you for reading this far.
edit: Yes, this is for an asset store package but also for a game I want to make... That's kinda how I do that part of my side-job... Making games and also selling the bits and pieces for a little extra scratch. If the idea of helping with something I plan to monetize is troubling to you then I completely understand.