how to make a small platform move in a square formation? possible??

Hipster_Owl_StudiosHipster_Owl_Studios Member, PRO Posts: 214
edited July 2012 in Working with GS (Mac)
i was wondering if anybody in the community knows how to make a small platform move around in a square formation I'm not sure if it can be done? any wisdom on this topic would be great thanks!

Comments

  • rhinokeyrhinokey Member Posts: 158
    say you wanted the platform to start at(A) x512/y64 move left to(B) x0/y64,
    then move up to(C) x0/y128 then move right to (D)x512/y126 then back down to its original starting spot of x512/y64
    make your platform place it at A, then
    rule
    if self.posx=512 AND self.pos.y =64
    interpolate self.posx0

    rule
    if self.posx=0 AND self.pos.y =64
    interpolate self.pos.y 128

    rule
    if self.posx=0 AND self.pos.y =128
    interpolate self.posx512

    rule
    if self.posx=512 AND self.pos.y =128
    interpolate self.posx0

    rule
    if self.posx=512 AND self.pos.y =128
    interpolate self.posy 0



  • Hipster_Owl_StudiosHipster_Owl_Studios Member, PRO Posts: 214
    thank you very much you are awesome!
Sign In or Register to comment.