Transition to language: From agent perception to event representation