Making a Moving Platform
I ran into an issue developing a working on the moving platform for levels. Originally, I wanted to write a script for a moving platform that allows me to edit the distance and direction of the moving platform in blueprint. The platform had continuously spammed back and forth in one spot, even while I had the ranged distance set to a higher amount.
There was more than meets the eye in this situation. originally, I thought I had my math backwards in the code. I thought I had a greater than located where it should be less than and vice versa. This turned out to not be the issue. After some troubleshooting, I figured out that my "range" I had set was just a much lower number than necessary to actually move the platform. A way to fix this would be to pay more attention to what size units in Unreal are and take into account that not everything is a problem with code.
Author: Jesse Hilario
Comments
Post a Comment