You have to trigger an event. Events can be triggered by coming into contact with an NPC, an event field, or entering a new area. Assign an event # to an NPC, an event field, or an area's entrance event in the levels editor. Click the event # button to open the event in the events editor. Then create commands to move Mario or NPCs or whatever.