Using Interp. instead of Change Velocity help

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
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)

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Will interpolate can be used as a movement but not for everything.

    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.
Sign In or Register to comment.