Move Back & Forth Trouble

RedlerTechRedlerTech Member Posts: 1,583
edited November -1 in Working with GS (Mac)
Hey,
I remember there being a tutorial on how to move a block back & forth after hitting "walls". Can someone send it to me? Matthewredler@gmail.com

Matt

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Can you explain a little better? what do you mean by move back and forth after hitting a wall.

    Do you mean hitting and bouncing back and hitting again over and over
  • RedlerTechRedlerTech Member Posts: 1,583
    emailed :)
  • olster1olster1 Member Posts: 396
    I'm sure TSB's help is better but heres what I do. create an X and Y attribute in actor. I change attibute self.position.X to the self.X attribute I created. I change attribute self.position.Y to the self.Y attribute I created.

    For an X axis movement:
    I create a rule saying, when self.position.X = Self.X (the attribute I created) interpolate self.position.X to self.X+"insert distance here" I then have a second rule that states, when self.position.X = self.X+"the same distance as you put in the first rule" interpolate self.position.X to self.X.

    The same is done for the Y movement. This is great as it means you can drag and drop you actor and move it multiple times and it will still do as it's told without having to fiddle with precise co-ordinates.
Sign In or Register to comment.