Interpolate non-moveable actors, HOW?

BrynjeBamsenBrynjeBamsen Member Posts: 188
edited November -1 in Working with GS (Mac)
due to gravity i have to make my actor non-moveable.
in this case i would like to have my actor move back and forth like a trap door closing and opening over and over?

Ive been told this is possible with interpolate? but how

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    place the interpolate behaviors in place of move behaviors.
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    Hhmmm i must most be doing something wrong.

    there no touch involved! i just want them automatically to go up and down over and over....
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    Bumb
  • simo103simo103 Member, PRO Posts: 1,331
    Hi ... I think you need some rules to start the motion and then to change the direction. I copied this tip from Darren a while ago which I think shows how to do what you want. (Note it has X in there for left and right movement, change to Y for up and down):

    "The best way to do it if you want more control over the platform and to place it easy in the scene imo is to do...
    Make a real self.attribute call it startX
    change attribute self.startX to self.position.X (this stores the X position of the platform in the scene so you can now place it anywhere).
    make a rule if self.position.x = self.startX
    Interpolate self.position.X to self.startX+100
    otherwise (still using one rule)
    if self.position.x = self.startX+100
    Interpolate self.position.X to self.startX
    You can now place this actor anywhere and have multiple copies and also change the travel distance for each platform."
Sign In or Register to comment.