Tuesday, July 17, 2018

Moving Platforms (for real this time!)

Ok, so last time I posted about moving platforms, I thought I was done. Apparently I was not. :)

Although I did have them working, they apparently had an issue when the player was hanging off the edge of one and then collided with the floor. You would naturally think that as you hang off the edge of the platform and collide with a floor, it would push you or something along those lines. But you can not make assumptions when coding!


So yeah, as you can see... that's no good. I had a lot of issues I had to sort out there because of the moving platform being a child of the floor object and other coding blah blah blah stuff. At one point, I though I had it solved... but I was wrong and lost a few hairs on my head because of it. ;)

I watched a million videos and I visited many forum and reddit posts trying to find help. Although I did get suggestions from many nice people, I never got exactly the help I needed. There were a few times I wanted to just give up and throw the whole project away... all over some moving platforms. I even thought of just removing them from the game and pretending they were never a thing! But they are a thing and I didn't want to give up... so I kept at it... kept looking for a solution... and I finally freaking found one! Or better yet, I should say, I solved my own problem!



Look at those beautiful moving platforms! Look at how smoothly they move the player! How they gently push the player out of the way. It almost brings a tear to your eye, doesn't it? No? It doesn't? It's just me? Oh well... I'm proud of them nonetheless! And since you stayed around to read my nonsense, I'll reward you with a nifty look at the new trick I taught my lasers! (At least I think I haven't shared this yet... if I have... just pretend I didn't and enjoy them anyway because they're neat!


No comments:

Post a Comment

Moving Platforms (for real this time!)

Ok, so last time I posted about moving platforms, I thought I was done. Apparently I was not. :) Although I did have them working, they ap...