{"id":348,"date":"2018-05-10T20:51:36","date_gmt":"2018-05-10T20:51:36","guid":{"rendered":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/?page_id=348"},"modified":"2018-05-10T21:52:28","modified_gmt":"2018-05-10T21:52:28","slug":"what-do-the-event-do","status":"publish","type":"page","link":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/what-do-the-event-do\/","title":{"rendered":"What do the Events do?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-355\" src=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture.png\" alt=\"\" width=\"248\" height=\"272\" \/><\/p>\n<p>There are 5 events currently in the Alice&#8217;s Adventure interaction library. Let&#8217;s take a look at what they do.<\/p>\n<ol>\n<li><strong>Click on A\u00a0\u00a0<\/strong>This event is triggered when you click on any object, character or item, which is specified by choosing a value for A<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-356\" src=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-1-300x197.png\" alt=\"\" width=\"300\" height=\"197\" srcset=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-1-300x197.png 300w, https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-1.png 323w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nIn this example, if you play the game and click on the pencil with your cursor, the appropriate reaction will be triggered.<\/li>\n<li><strong>Use A on B\u00a0<\/strong> This event is triggered when you drag any object A on top of any object B, where you decide what is A and B for your game. This event only gets triggered when you use A on B, and trying to drag B on A won&#8217;t trigger it.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-357\" src=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-2-300x146.png\" alt=\"\" width=\"300\" height=\"146\" srcset=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-2-300x146.png 300w, https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-2.png 342w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nIn the above example if you drag the eraser on to the pencil, the reaction gets triggered.<br \/>\nNOTE: It is recommended that object A be in the inventory before you use it on B. If you wish to use A on B where both A and B are in the main scene, set A to &#8216;draggable&#8217; in it&#8217;s properties tab (under the scene editor).<\/li>\n<li><strong>Combine A with B\u00a0 <\/strong>This event is triggered when you drag any object A on top of any object B and vice versa, where you decide what is A and B for your game. This event\u00a0 gets triggered when you use A on B, or if you B on A.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-358\" src=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-3-300x143.png\" alt=\"\" width=\"300\" height=\"143\" srcset=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-3-300x143.png 300w, https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-3.png 380w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nIn the above example if you drag the sugar on the coffee or the coffee on the sugar, the reaction gets triggered.<br \/>\nNOTE: It is recommended that object A and B be in the inventory before they are used. If you wish to combine A and B where either one or both are in the main scene , set A and B to &#8216;draggable&#8217; in it&#8217;s properties tab (under the scene editor).<\/li>\n<li><strong>Change State\u00a0<\/strong> This event is triggered when the chosen state is changed to the desired state (on or off).<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-359\" src=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-4-300x150.png\" alt=\"\" width=\"300\" height=\"150\" srcset=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-4-300x150.png 300w, https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-4.png 325w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nIn the above example, this event gets triggered if at any point in the game, the state &#8220;Is Locked&#8221; gets set to &#8216;false&#8217;.<\/li>\n<li><strong>Enter Scene\u00a0<\/strong>This event is triggered when a scene is opened for the first time. If there is only one scene in your game, the reaction sets off as soon as the game begins.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-360\" src=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-5-300x154.png\" alt=\"\" width=\"300\" height=\"154\" srcset=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-5-300x154.png 300w, https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/wp-content\/uploads\/2018\/05\/Capture-5.png 305w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nIn the above example, when the player enters the library scene , the reaction is triggered. It is also triggered every other time the player enters the library in the game.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>There are 5 events currently in the Alice&#8217;s Adventure interaction library. Let&#8217;s take a look at what they do. Click on A\u00a0\u00a0This event is triggered when you click on any object, character or item, which is specified by choosing a value for A In this example, if you play the game and click on the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/what-do-the-event-do\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;What do the Events do?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-348","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/pages\/348"}],"collection":[{"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":5,"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/pages\/348\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/pages\/348\/revisions\/363"}],"wp:attachment":[{"href":"https:\/\/projects-old.etc.cmu.edu\/alice-adventure\/index.php\/wp-json\/wp\/v2\/media?parent=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}