Hello,
I have a sprite platform I created and I am just trying to get it to move left and right continuously like in most 2d games
I am still new to Ue4 and I am hoping for advice on how to get that scripted!
Thanks
Hello,
I have a sprite platform I created and I am just trying to get it to move left and right continuously like in most 2d games
I am still new to Ue4 and I am hoping for advice on how to get that scripted!
Thanks
Welcome to UE4! There are many ways to go about this. A simple one involves a timeline and a vector track inside set to the distance you want the platform to move left and right. Use the vector output to “set actor location” after the timeline, so position is updated with the change in the timelines vector output. So at time 0 it would be at (0,0,0) and time 3 seconds at (1000,0,0) this would move the platform forward 1000 units in the X directionover 3 seconds for example. Then have the timeline reverse itself moving the platform backwards to (0,0,0). You could also use the sequencer and create the same thing. Check out video #8 in the link below for help with using a sequence. You may also find the other videos useful if you are new to UE4. Hope this helps