Added spawn.
Added event parsing. See scenes/click_to_change.xml for a demo.