Moving a Platform - My extra challenge to myself

I haven’t looked ahead, so this may be covered in future videos, but I wanted to give myself an extra challenge. I wanted to make this code re-usable and more versatile. What if I want the platform to move along a different axis, or multiple axes (diagonally)? And I’m going to be using this code to affect multiple platforms, so I want an easy way to set their begin and end locations for where they will move back and forth between. I was really proud of my solution, so I thought I would share. Now all I have to do is move the platform where I want it to end up at, copy the transform location numbers into the EndLocation and then move the platform where I want it to start from and BAM, all done.


Privacy & Terms