Another approach!

Hello Everyone you can also use an AnimationPlayer node to accomplish this. If you ever edited a video using software like Openshot or Premiere this is pretty much the same. If not, allow me to explain how to do it. Let’s begin!!!

  1. Add an AnimationPlayer Node to your level root
  • anim1
  1. Go to the ‘Root Node’ property and select the Obstacle there
  1. Click Animation and select New
  • anim3

3b. Give it a name and click Ok

  • anim3b
  1. To the right section of the animation player set loop, autoload and your time. In this example 6 seconds
  • anim4

4b. Left side of the animator set the position at zero and we are ready to start!!

  • anim4b
  1. Select your obstacle and move it where you want it to start its movement. In this case I am moving it up and down as well.
  • anim5

5b. Click that little key icon and create a new keyFrame into your time line.

  • anim5b
  1. Go ahead and place your track head at second 3 in your time line and Move UP your obstacle where you want it to be at that particular time and click again the little key icon next to the transform property in order to create a new keyFrame with that information at that time
  1. Right side of your time line. Select the interpolation mode and change it to cubic
  • anim7
  1. Click the Edit button and select ‘Make Easing Selection’
  • anim8
  1. In Trasition Type select Sine and click Ok
  • anim9
  1. Finally you can fine tune the speed of the animation by selecting the AnimationPlayer node and changing the ‘Speed Scale’ property
  • anim10

And that’s pretty much it. As you can see its a more ‘visual’ approach to achieve a similar effect. Also you can animate or change ANY thing that has that little key next to it…!!!

Here is a VIDEO showing these steps.
Thanks and let´s continue!!

6 Likes

Privacy & Terms