I want to make my player push an object, such as a boulder.
In the 2Ddemo Brain 'pushes' the tree swing.
I want however to move part of the scenery and leave it in the new position at the end of the cut-scene.
What would be the preferable method of doing this. Presently, as a place-holding test, I have simply keyed the object at the start to move position to the end. At the same time I have my player move to the new position. This will certainly not do for the finished game.
What do I need to consider?
Thanks anyone who can help.
Comments
They're public variables in the Player script (actually the Char script, which is the base class). A simple script is all that's needed to override them:
void ChangeAcceleration (float newValue)
{
GetComponent <Char>().acceleration = newValue;
}
Know that a deceleration value of 0 will make AC just use the accelaration value for both.