Thanks BJDMaster for your reply,
I have added player=me; to the player01 script
and entity* player; to my running script ...........
The player still passes through the wall of the 'box' when it moves.
what am I doing wrong please?

sincerely, David