Trying to make an object move back and forth
I'm currently trying to code a simple blueprint: Trying to make this object simply move swiftly on the X axis back-and-forth.
Here is the object:
Here is what I have on my Event Graph as of now:
And just in-case, my Timeline:
Any suggestions? Thanks in advance!
Hi again. I worked with your sample, and here is working solution. You miss few things, like a set world location, but not only. I created this on level blueprint, but it can be used elsewhere, rule is same. Here blueprint:
Do not forget to set mesh movable.
Generally I think better would be to create animation for movement like this, but it can works too, depending on your needs. Maybe this is not best version, but working as expected.
I changed values for better tracking, in example it moving 200 units as I remember and I changed time to 4.
Funny facts: if you will create platform with this script, you can ride on it. It can work aslo very nice as elevator; working with destructible, but with some weird effects - chunks moving too;
Follow this question
Once you sign in you will be able to subscribe for any updates here