Using Interp. instead of Change Velocity help
I've never touched interpolate but I saw you can move non-moveable actors with it.....so I am going to adopt it to all my moving actors to save performance. I use change velocity on all of them and I've messed with interpolate a little bit but not enough so I was wondering if you guys would tell me how to set up interpolate to achieve this effect I am getting with change velocity:
My change velocity looks like this;
Direction: Random (240,300)
Speed: Random (150,200)
My change velocity looks like this;
Direction: Random (240,300)
Speed: Random (150,200)
Comments
What you are doing would be something like
interpolate self.position.x to 240
duration of 1
Interpolate self.position.y to 300
duration of 1
the duration can be set to a game or self attribute so you could setup a rule to change the duration randomly on an attribute and then place that attribute in place of a number for duration.
Unfortunately you cannot really setup a constant movement that I know of with interpolate at least one that runs smoothly. so there is only certain uses for movements.