Hello,
I have a lift platform which judders when the player gets on it and it moves.( I do not want to use the standard lift01 as it moves as soon as the player gets on it – I want the lift ‘triggered’ by the switch while the player is standing on it).
I assume there must be some reaction between the player and the lift – their bounding boxes?
I have tried inserting bits of code from the template lift code to solve this problem, but to no effect. Below is the code I use to work the lift. A lever is pulled and the lifts moves;-
function craterlift()
{
while (levercrater.tilt < 359) //lever switch which activates lift
{
levercrater.tilt += 20 * time_step;
wait (1);
}
while (platform1.z > -60) //something needed here to stop judder?
{
platform1.z -= 2 * time_step; //lift starts to move
wait (1);
}
}
action craterlever()
{
levercrater = my;
my.enable_click = on;
my.event = craterlift;
}
Can anyone help please? I have spent a LOT of time on this – and it has beaten me !!
Kind regards, David
(david@davidmoreton1.wanadoo.co.uk)