Move Back & Forth Trouble
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
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
Do you mean hitting and bouncing back and hitting again over and over
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.