I’ve been following Brackey’s tutorials up until tutorial 7, then I decided to branch off the project and start my own game. I am basically starting from scratch save for the movement and camera follow scripts. I am choosing to make a platformer, and I thought that using iTween to animate my platforms (make them move from left and right) would be a great idea.
Everything was going fine, until I tested it. When the Player Controller lands on the moving platform, his position doesn’t update with the position with the platform (so if the platform is moving right, the player will eventually fall off). I’ve been searching the internet for the past two hours, and trying any solutions that didn’t require heavy coding. One solution that “sortof” worked was making the player a child of the platform object on TriggerEnter2D. Although, this felt sluggish performance-wise and wasn’t as “smooth” as I’d hoped. I noticed people posting scripts for other movement scripts as a base, but I want to stick with Brackey’s 2D Tutorial Character Controller.
How would I go about implementing script that keeps the player moving along the platform for Brackey’s script (that wouldn’t conflict with iTween)? I would prefer to write the script in C# if at all possible.
tl;dr I need help with moving the player along with a moving platform USING Brackey’s player controller script (while hopefully keeping it simple).