{"id":136,"date":"2006-12-15T15:28:04","date_gmt":"2006-12-15T13:28:04","guid":{"rendered":"http:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/?p=136"},"modified":"2006-12-15T18:12:02","modified_gmt":"2006-12-15T16:12:02","slug":"action-system-test","status":"publish","type":"post","link":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/?p=136","title":{"rendered":"Action System test"},"content":{"rendered":"<p>Here&#8217;s a little demo of the current state of the project. This concludes the work on the Action System so far. There&#8217;s a million little things that we would like to do but with respect to our main motto (&#8220;It&#8217;s better to make something than nothing&#8221;), we will proceed to start building the second big chunk of Drama Princess, the Decision System, next week.<\/p>\n<p><img decoding=\"async\" id=\"image137\" src=\"http:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/wp-content\/uploads\/2006\/12\/20061215-ActionSystemTest3.jpg\" alt=\"Action System test 3\"\/><\/p>\n<p>There are four behaviours in this demo that each of the actors can perform: walk to a random position, walk to a random position and sit down, and walk to a random object and walk to the other actor. In the case of the latter, a &#8220;Shock&#8221; is sent to the other actor that makes him or her turn around and face the actor (not very elegantly for now \ud83d\ude09 ).<\/p>\n<p>These behaviours are just triggered at random. When a behaviour is chosen while another one is still playing, the system first ends the other one. Every behaviour is stored in its own file and loaded in memory every time the behaviour is triggered. If special animations are required to perform the behaviour (like sitting, e.g.), these are included in the behaviour file.<\/p>\n<p>Every actor uses the exact same systems (not copies or instances) with different parameters (stored in an array table). In theory, the system can support an unlimited number of actors (until your videocard gives up) but the maximum in this demo is set to 10 (press the space bar to add an actor).<\/p>\n<p>There is no collision detection but the actors are aware of which objects are close to them. They look at these randomly. If the object is another actor and the other actor looks at them, they will look away.<\/p>\n<p><strong>The idea of this Action System is to give the actors a natural looking idle behaviour with built-in <em>reflexes<\/em>: spontaneous responses to their environment that do not require any decision making. There&#8217;s a lot more we would like to implement (feel free to make suggestions in the comments) but for now it will have to do.<\/strong><\/p>\n<p>You can download this demo <a href=\"http:\/\/Tale-of-Tales.com\/DramaPrincess\/tests\/DramaPrincessActionSystemTest3.zip\">here<\/a>.<br \/>\nIt requires Windows and a 3D videocard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a little demo of the current state of the project. This concludes the work on the Action System so far. There&#8217;s a million little things that we would like to do but with respect to our main motto (&#8220;It&#8217;s better to make something than nothing&#8221;), we will proceed to start building the second big [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-development"],"_links":{"self":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":0,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tale-of-tales.com\/DramaPrincess\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}